Skip to content

Instantly share code, notes, and snippets.

@paddya
Created March 26, 2012 19:40
Show Gist options
  • Save paddya/2209099 to your computer and use it in GitHub Desktop.
Save paddya/2209099 to your computer and use it in GitHub Desktop.
/**
* @ORM\Entity
*/
class UserProductAssociation
{
/**
* @ORM\Id
* @ORM\Column(type="bigint")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(nullable=false)
* @ORM\ManyToOne(targetEntity="Product")
*/
private $product;
/**
* @ORM\Column(nullable=false)
* @ORM\ManyToOne(targetEntity="User", inversedBy="productAssociations")
*/
private $user;
/**
* @ORM\Column(nullable=true)
* @ORM\ManyToOne(targetEntity="ContactPerson")
*/
private $contactPerson;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment