Example #1
0
 /**
  * Construct
  *
  * @param Product $product
  * @param string $version
  */
 public function __construct(Product $product, $version)
 {
     $this->releases = new \Doctrine\Common\Collections\ArrayCollection();
     $this->product = $product;
     $this->version = $version;
     $this->product->addBranch($this);
 }