[FLOW3-general] FLOW3 query on extended object
Thomas Plessis
t.plessis at totemnumerique.com
Tue Jan 10 15:11:00 CET 2012
Hi guys,
I need to make a search query in my members list. A member object extends the Person class of Flow3. Here is my search method in the MemberRepository :
/**
* Finds members which match the specified nickname
*
* @param string $nickname Nickname to search
* @return \TYPO3\FLOW3\Persistence\QueryResultProxy The members
*/
public function findByNickname($nickname) {
$query = $this->createQuery();
return $query->matching($query->like('name.alias', '%' . $nickname . '%', FALSE))->execute();
}
But No results founds. Is there troubles with inheritance of Person class? I think that the name property can't be found because it's not a field of the member's table… :/
Any ideas?
regards,
Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55
More information about the FLOW3-general
mailing list