BUG FIX - ORM PROPEL had a litle bug, when selecting tables that have foreign keys
This commit is contained in:
2
gulliver/thirdparty/propel/map/TableMap.php
vendored
2
gulliver/thirdparty/propel/map/TableMap.php
vendored
@@ -300,7 +300,7 @@ class TableMap {
|
||||
$col = new ColumnMap($name, $this);
|
||||
|
||||
if ($fkTable && $fkColumn) {
|
||||
if (substr($fkColumn, '.') > 0 && substr($fkColumn, $fkTable) !== false) {
|
||||
if (substr_count($fkColumn, '.') > 0 && substr($fkColumn, strlen($fkTable)) !== false) {
|
||||
$fkColumn = substr($fkColumn, strlen($fkTable) + 1);
|
||||
}
|
||||
$col->setForeignKey($fkTable, $fkColumn);
|
||||
|
||||
Reference in New Issue
Block a user