[TYPO3-mvc] Database queries/mapping with associated tables
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Aug 18 10:38:13 CEST 2010
Hey again,
> What do you like to filter? Companies or employees? For companies it
> would look like this:
>
> $query->matching(
> $query->equals('country', /*Tx_YourExt_Domain_Model_Country or a plain
> UID*/ $country)
> );
or if you only need to filter by country and not combine filtering
options, you could directly call findBy* methods from within your
controller:
$companies = $this->companyRepository->findByCountry($country);
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list