protected function getColumnForeignKey($table,
$column) { /** @var \Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey */
foreach ($table->
getForeignKeys() as $foreignKey) { foreach ($foreignKey->
getLocalColumns() as $foreignKeyColumn) { if ($foreignKeyColumn ===
$column->
getName()) { return $foreignKey;
} } } return null;
} /**
* Helper function to convert the boolean value of the function "column->getNotNull()" to
* a string which can be used for the doctrine annotation.
*
* @param \Doctrine\DBAL\Schema\Column $column
*
* @return string
*/