Quantcast
Channel: How can I use 'foreign key' on doctrine? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



How 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
Browsing latest articles
Browse All 2 View Live




Latest Images