Created
October 30, 2012 09:03
-
-
Save Avalarion/3979140 to your computer and use it in GitHub Desktop.
[TYPO3][ExtBase] Query -> IN Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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