Пример #1
0
 /**
  * Finds all remaining posts of the blog
  *
  * @param Tx_BlogExample_Domain_Model_Post $post The reference post
  * @return Tx_Extbase_Persistence_QueryResultInterface The posts
  */
 public function findRemaining(Tx_BlogExample_Domain_Model_Post $post)
 {
     $blog = $post->getBlog();
     $query = $this->createQuery();
     return $query->matching($query->logicalAnd($query->equals('blog', $blog), $query->logicalNot($query->equals('uid', $post->getUid()))))->execute();
 }