Exemplo n.º 1
0
 /**
  * @Soap\Method("getNotes")
  *
  * @Soap\Param("page", phpType="int")
  * @Soap\Param("limit", phpType="int")
  * @Soap\Param("entityId", phpType="Oro\Bundle\EntityBundle\Model\EntityIdSoap")
  * @Soap\Result(phpType = "Oro\Bundle\NoteBundle\Entity\NoteSoap[]")
  *
  * @AclAncestor("oro_note_view")
  */
 public function cgetAction(EntityIdSoap $entityId, $page = 1, $limit = 10)
 {
     /** @var NoteRepository $repo */
     $repo = $this->getManager()->getRepository();
     $qb = $repo->getAssociatedNotesQueryBuilder($entityId->getEntity(), $entityId->getId(), $page, $limit);
     $result = $qb->getQuery()->getResult();
     return $this->transformToSoapEntities($result);
 }