Ejemplo n.º 1
0
 public function __construct()
 {
     $this->attributes = new ArrayCollection();
     $this->options = new ArrayCollection();
     $this->createdAt = new \DateTime();
     parent::__construct();
 }
Ejemplo n.º 2
0
    public function __construct()
    {
        parent::__construct();

        $this->rules = new ArrayCollection();
        $this->createdAt = new \DateTime();
    }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function setFallbackLocale($fallbackLocale)
 {
     if (null !== $this->root) {
         $this->root->setFallbackLocale($fallbackLocale);
     }
     return parent::setFallbackLocale($fallbackLocale);
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->createdAt = new \DateTime();
 }
Ejemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->children = new ArrayCollection();
 }
Ejemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public function addTranslation(TranslationInterface $translation)
 {
     parent::addTranslation($translation);
     if ($translation instanceof TaxonomyTranslation) {
         $this->root->setName($translation->getName());
     }
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->provinces = new ArrayCollection();
 }