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