/**
* @param \Doctrine\DBAL\Schema\Table $table
* @param string $sourceCode
*
* @throws Exception
*
* @return bool
*/
public function createModelFile($table,
$sourceCode) { // At least we need a file name for the current table object.
$className =
$this->
getClassNameOfTableName($table->
getName());
if (strpos($table->
getName(), '_attributes'
)) { $tableName =
str_replace('_attributes', '',
$table->
getName());
$className =
$this->
getClassNameOfTableName($tableName);
} if ($className === ''
) { return false;
} $file =
$this->
getPath() .
$className . '.php';