/** * @return \WellCommerce\Bundle\ClientBundle\Entity\ClientGroupInterface */ public function create() { $clientGroup = new ClientGroup(); $clientGroup->setDiscount(0); $clientGroup->setClients(new ArrayCollection()); $clientGroup->setPages(new ArrayCollection()); return $clientGroup; }
public function create() : ClientGroupInterface { $group = new ClientGroup(); $group->setDiscount(0); $group->setClients($this->createEmptyCollection()); $group->setPages($this->createEmptyCollection()); return $group; }