[TYPO3-english] Different storagePid handling for findAll() and findByUid()?
Xavier Perseguers
xavier at typo3.org
Fri Nov 29 12:18:31 CET 2013
Hi Jan,
>> 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.
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-english
mailing list