예제 #1
0
 public function __construct()
 {
     $this->attributes = new ArrayCollection();
     $this->options = new ArrayCollection();
     $this->createdAt = new \DateTime();
     parent::__construct();
 }
예제 #2
0
    public function __construct()
    {
        parent::__construct();

        $this->rules = new ArrayCollection();
        $this->createdAt = new \DateTime();
    }
예제 #3
0
파일: Taxonomy.php 프로젝트: nmarmon/Sylius
 /**
  * {@inheritdoc}
  */
 public function setFallbackLocale($fallbackLocale)
 {
     if (null !== $this->root) {
         $this->root->setFallbackLocale($fallbackLocale);
     }
     return parent::setFallbackLocale($fallbackLocale);
 }
예제 #4
0
파일: Product.php 프로젝트: aleherse/Sylius
 public function __construct()
 {
     parent::__construct();
     $this->availableOn = new \DateTime();
     $this->attributes = new ArrayCollection();
     $this->variants = new ArrayCollection();
     $this->options = new ArrayCollection();
     $this->createdAt = new \DateTime();
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->createdAt = new \DateTime();
 }
예제 #6
0
파일: Taxon.php 프로젝트: Silwereth/Sylius
 public function __construct()
 {
     parent::__construct();
     $this->children = new ArrayCollection();
 }
예제 #7
0
 /**
  * {@inheritdoc}
  */
 public function addTranslation(TranslationInterface $translation)
 {
     parent::addTranslation($translation);
     if ($translation instanceof TaxonomyTranslation) {
         $this->root->setName($translation->getName());
     }
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->provinces = new ArrayCollection();
 }