Propel2 icon indicating copy to clipboard operation
Propel2 copied to clipboard

Cannot redeclare class with isCrossRef="true" and multiple foreign keys

Open andrenarchy opened this issue 11 years ago • 3 comments

In this example with isCrossRef="true" and multiple foreign keys the script fails with

Fatal error: Cannot redeclare Base\User::$collCinemas in /home/sandbox/generated-classes/Base/User.php on line 126

If isCrossRef="true" or the second foreign key created_by is removed the script runs without error.

andrenarchy avatar Feb 22 '15 15:02 andrenarchy

Maybe this is related to #473?

andrenarchy avatar Feb 22 '15 15:02 andrenarchy

Probably, but I'm not sure. Looks pretty much like a bug.

marcj avatar Mar 01 '15 14:03 marcj

fixed?

dimaxz avatar Nov 20 '22 12:11 dimaxz