Skip to content

Instantly share code, notes, and snippets.

@marcw
Created November 29, 2012 17:14
Show Gist options
  • Select an option

  • Save marcw/4170483 to your computer and use it in GitHub Desktop.

Select an option

Save marcw/4170483 to your computer and use it in GitHub Desktop.
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Foo", inversedBy="inversedFoo")
* @ORM\JoinColumn(name="foo_id", referencedColumnName="id", onDelete="CASCADE")
* @Assert\NotNull()
*/
private $foo;
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Bar", inversedBy="inversedBar")
* @ORM\JoinColumn(name="bar_id", referencedColumnName="id", onDelete="CASCADE")
* @Assert\NotNull()
*/
private $bar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment