Hi Mohsen,
Here's the updated example:
class class1
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var integer
*
* @ORM\ManyToOne(targetEntity="class2")
* @ORM\JoinColumn(name="f_key", referencedColumnName="id")
*/
private $fkey;
}
class class2
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
*/
private $id;
}
class class3
{
/**
* @var integer
*
* @ORM\Id
* @ORM\ManyToOne(targetEntity="class2")
* @ORM\JoinColumn(name="id_id", referencedColumnName="id")
*/
private $id;
}
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 8 September 2015 at 15:18, Mohsen Saberi <[email protected]> wrote:
> Hi Marco
> Thanks for your reply,
>
> What should do to its work?
>
> Best Regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.