[DDC-2079] Error in build entities using yml with several inversedJoinColumns Created: 15/Oct/12 Updated: 09/Nov/12 Resolved: 21/Oct/12
|Project:||Doctrine 2 - ORM|
|Reporter:||André Antônio Lemos de Moraes||Assignee:||Fabio B. Silva|
windows 7/php 5.3/apache 2.2
Hello guys, sorry for the bad English found the error during a necessity and would like to post the solution.
Below is an example of my yml relationamento a many to many.
Well this example is generating this code.
Notice that Doctrine 2 is not putting commas to separate JoinColumns.
So looking at the source code I found the following code and put it solved my problem.
The changes was performed in EntityGenerator.php line 1090.
$arrJoins = array();
$lines = implode(",". PHP_EOL, $arrJoins);
$arrJoinsInverse = array();
$lines = implode(",". PHP_EOL, $arrJoinsInverse);
I hope you understand what I'm trying to say, for you do not know if this error occurred, but if there ocorrei is one possible solution.
|Comment by Fabio B. Silva [ 21/Oct/12 ]|