Answer by Pierrickouw for How can I use 'foreign key' on doctrine?
Here some cheat sheets for doctrine annotations : linkFor your problem, you need to define your variables in each side of your associations. In Lesson.php : /** * @ORM\OneToOne( *...
View ArticleHow can I use 'foreign key' on doctrine?
I am making the lesson administration system on symfony2 and doctrineI am confused to use foreign key in doctrine./Entity/User.phpclass User extends BaseUser{ /** * @ORM\Id *...
View Article
More Pages to Explore .....