You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Symfony 2.0.9. I guess this is linked directly to the doctrine / doctrine bundle.
EDIT: I found the issue in JIRA : http://www.doctrine-project.org/jira/browse/DDC-1497
I am unsure whether I should keep this issue in github then...
I have a User entity, which references a Band entity as an arrayCollection ($bands). So far everything is fine.
Then I try to setup 2 new variables as :
$favoriteBands with a ManyToMany relationship
$favoriteAlbums with a ManyToMany relationship
When generating the entity via php app/console doctrine:generate:entities AcmeMyBundle I have the following behavior:
for the bands:
I feel like I should have addFavoriteAlbum instead of addAlbum...
Furthermore, concerning the $favoriteBands, I only have the getter generated as the setter is considered, I assume, already generated (since I already have a "addBand" method coming from the $bands collection already registered).
Can you please fix it (or tell me if I am doing something wrong!)
The text was updated successfully, but these errors were encountered:
As I said when you opened the issue on the Symfony repo, the EntityGenerator comes from Doctrine. It does not come from DoctrineBundle. Please report it in the Doctrine issue tracker
@stof Sorry about that! I have indeed dig up the code where the error lives and it was inside the Doctrine itself.
As mentioned in my previous edit, I have found the same bug referenced on the Doctrine jira issue tracker.
Thank you again and sorry for creating useless tickets...
Hello,
I use Symfony 2.0.9. I guess this is linked directly to the doctrine / doctrine bundle.
EDIT: I found the issue in JIRA : http://www.doctrine-project.org/jira/browse/DDC-1497
I am unsure whether I should keep this issue in github then...
I have a User entity, which references a Band entity as an arrayCollection ($bands). So far everything is fine.
Then I try to setup 2 new variables as :
When generating the entity via php app/console doctrine:generate:entities AcmeMyBundle I have the following behavior:
for the bands:
I feel like I should have addFavoriteAlbum instead of addAlbum...
Furthermore, concerning the $favoriteBands, I only have the getter generated as the setter is considered, I assume, already generated (since I already have a "addBand" method coming from the $bands collection already registered).
Can you please fix it (or tell me if I am doing something wrong!)
The text was updated successfully, but these errors were encountered: