[TYPO3-mvc] After introducing "tx_extbase_type" my frontendusers aren't outputted

Marco Huber Marco.Huber at marit.ag
Wed Apr 21 15:08:30 CEST 2010


Hi Jochen,

> $companyRepository->findAll() will return only instances of Company
class.

OK, that's clear.

> $organizationRepository->findAll() will return instances of Company
and ScientificInstitution classes, but no instance of Organization
class. If 
we add "recordType = Organization" and there are records of this type, 
findAll() will also return Organization instances.

I like this part, because it perfectly fits to the scenario with the
tx_dam-table I have in mind ;-)

> $personRepository->findAll() will return all records mapped to class 
Person (boom!). In this case we *must* add "recordType = Person" or we 
have to set up our own table "person" for this.

What is if we find a Person with $personRepository->findAll() which
already has a recordType (for example a Company), change something and
then store it back to the database? I think in this case the recordType
should not be changed to Person. Because the next time we use
$companyRepository->findAll() we won't find this company.

Regard
Marco


More information about the TYPO3-project-typo3v4mvc mailing list