コード例 #1
0
 /**
  * @param Address $address
  * @param string $entryType
  * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
  */
 public function findByAddressAndType($address, $entryType)
 {
     $query = $this->createQuery();
     $query->matching($query->logicalAnd(array($query->equals('address', $address->getUid()), $query->equals('entryType', $entryType))));
     return $query->execute();
 }
コード例 #2
0
ファイル: Entry.php プロジェクト: bergwerk/bwrk_address
 /**
  * @param \BERGWERK\BwrkAddress\Domain\Model\Address $address
  * @param string $entryType
  * @return string
  */
 public function render($address, $entryType)
 {
     return $address->getEntriesWithType($entryType);
 }