Created
February 26, 2011 11:41
-
-
Save pjedrzejewski/845136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Products. | |
* | |
* @OneToMany(targetEntity="Sylius\AssortmentBundle\Entity\Product", mappedBy="category") | |
*/ | |
protected $products; | |
/* ... */ | |
public function __construct() | |
{ | |
$this->products = new ArrayCollection(); | |
/* ... */ | |
/** | |
* Category. | |
* | |
* @orm:ManyToOne(targetEntity="Sylius\AssortmentBundle\Entity\Category") | |
* @orm:JoinColumn(name="category_id", referencedColumnName="id") | |
*/ | |
protected $category = null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment