コード例 #1
0
ファイル: Archetype.php プロジェクト: vikey89/Sylius
 public function __construct()
 {
     $this->attributes = new ArrayCollection();
     $this->options = new ArrayCollection();
     $this->createdAt = new \DateTime();
     parent::__construct();
 }
コード例 #2
0
ファイル: ShippingMethod.php プロジェクト: kriswillis/Sylius
    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
ファイル: PaymentMethod.php プロジェクト: sidibea/Sylius
 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
ファイル: Taxonomy.php プロジェクト: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function addTranslation(TranslationInterface $translation)
 {
     parent::addTranslation($translation);
     if ($translation instanceof TaxonomyTranslation) {
         $this->root->setName($translation->getName());
     }
 }
コード例 #8
0
ファイル: Country.php プロジェクト: Strontium-90/Sylius
 public function __construct()
 {
     parent::__construct();
     $this->provinces = new ArrayCollection();
 }