public function generateAll()
{
foreach ($this->getAllTableNames() as $tableName) {
$tableInfo = $this->_dbMetaData->getTableInfo($tableName);
if (!empty($this->_relations)) {
// Cancel generation of M-M relationships middle table
if (count($tableInfo->getPrimaryKeys()) === 2 && count($tableInfo->getColumns()) === 2) {
//M-M relationships
continue;
}
}
$this->_commonGenerate($tableName, $tableInfo);
}
}