[TYPO3-english] Different storagePid handling for findAll() and findByUid()?

Jan Kornblum jan.kornblum at gmx.de
Fri Nov 29 13:00:40 CET 2013


Hi Xavier,

>>> the default behaviour of findByUid is to find by uid and nothing else.
>>> if you don't want that, implement it yourself with checking the pid as
>>> well
>> 
>> Fine, thanks for your reply! Good to know.
>> 
>> I've assumed that the storagePid setting would act for a repository in
>> general. So, if a storagePid is set, all repository's methods would
>> respect this. Isn't it a little bit confusing?
>
> No, because if you ask for a particular object, you know what you do as
> UID is unique, it wouldn't make much sense to filter the "list" (of a
> single element anyway) with the storage.

Thanks, I understand... Continually learning new things ;) Great list 
here!

Kind regards, Jan




More information about the TYPO3-english mailing list