Foo.php <?php
namespace your\path\Entity; /** * @orm:Entity */ class Foo { /** * @orm:Id * @orm:Column(type="integer") * @orm:GeneratedValue(strategy="AUTO") */ protected $id; /** * @orm:OneToOne(targetEntity="Bar") */ protected $bar; } Bar.php <?php namespace your\path\Entity; /** * @orm:Entity */ class Bar { /** * @orm:Id * @orm:Column(type="integer") * @orm:GeneratedValue(strategy="AUTO") */ protected $id; /** * @orm:Column(type="string", length="64") */ protected $baz; } On Tue, May 10, 2011 at 12:00 AM, user123 <zolzaya...@gmail.com> wrote: > Hi guys, I need a ORM tutorial. I'm coded some ORM. But when I run > app/ > console doctrine:schema:create command relation between tables does > not generated automatically / doesn't generate primary and foriegn > key columns/. Please help me I need a very simple /one to one > associated/ tutorial. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en