Skip to content

Instantly share code, notes, and snippets.

@Avalarion
Created October 30, 2012 09:03
Show Gist options
  • Save Avalarion/3979140 to your computer and use it in GitHub Desktop.
Save Avalarion/3979140 to your computer and use it in GitHub Desktop.
[TYPO3][ExtBase] Query -> IN Example
<?php
/**
* Find all BadWords from the wordlist
*
* @param array[String] $wordList
* @return Tx_Extbase_Persistence_QueryResult
*/
public function findByBadWordList($wordList) {
$query = $this->createQuery();
$query->matching(
$query->in('badword', $wordList)
);
return $query->execute();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment