[TYPO3-mvc] [!!!] FYI: Breaking changes in recent commit of Extbase

Jochen Rau jochen.rau at typoplanet.de
Mon Mar 8 20:21:59 CET 2010


Hi (again ;-)).

On 08.03.10 19:03, Thomas "Thasmo" Deinhamer wrote:
> Another question about this:
>
> "[+FEATURE] Extbase (Persistence): Implemented Query::implodeAnd(array)
> and Query::implodeOr(array). Please give Feedback on this Feature. This
> is not yet part of the API! Related to #6735."
>
> Wouldn't it be better to allow providing the array of constraints
> directly to logicalAnd() and logicalOr() instead of some sort of
> imploding mechanism? Or did I miss something?

I really like to have method arguments to be as explicit as possible, like

$query->logicalAnd($constraint1, $constraint2);

And

$constraints = array($constraint1, $constraint2);
$query->implodeAnd($constraints);

seems to be very natural (at least to me ;-)), because 
implodeAnd($constraints) has the same semantics as implode(' AND ', 
$constraints).

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list