protected function getPropertyNameOfColumnName($table,
$column) { $foreignKey =
$this->
getColumnForeignKey($table,
$column);
if ($foreignKey instanceof \Doctrine\DBAL\Schema\ForeignKeyConstraint
) { $table =
$foreignKey->
getForeignTableName();
$fullName =
$this->
getClassNameOfTableName($table);
return lcfirst($fullName) . 'Id';
} return lcfirst($this->
underscoreToCamelCase($column->
getName()));
} /**
* Converts underscore separated string into a camelCase separated string
*
* @param string $str
*
* @return string
*/