Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: implements WellCommerce\Bundle\AttributeBundle\Entity\AttributeInterface, use trait Knp\DoctrineBehaviors\Model\Translatable\Translatable, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable
コード例 #1
0
 public function create() : AttributeInterface
 {
     $attribute = new Attribute();
     $attribute->setValues($this->createEmptyCollection());
     $attribute->setGroups($this->createEmptyCollection());
     return $attribute;
 }
コード例 #2
0
 /**
  * @return \WellCommerce\Bundle\AttributeBundle\Entity\AttributeInterface
  */
 public function create()
 {
     $attribute = new Attribute();
     $attribute->setValues(new ArrayCollection());
     return $attribute;
 }