Exemplo n.º 1
0
 /**
  * Returns all attributes in group
  *
  * @param int $id
  *
  * @return \Doctrine\Common\Collections\Collection
  */
 public function findAttributesByAttributeGroupId($id)
 {
     $attributeGroup = $this->findAttributeGroup($id);
     $criteria = new Criteria();
     $criteria->where($criteria->expr()->eq('attributeGroup', $attributeGroup));
     return $this->repository->matching($criteria);
 }