[TYPO3-team-core-v5] RFC: fluent interface to query persistence

Sebastian KurfŸürst sebastian at typo3.org
Tue Jul 22 15:28:28 CEST 2008


Hey Karsten,

>> We would need a precedence here - so what is the difference between:
 >
> Probably no useful difference. You need to specify precedence by 
> correctly nesting yourself (as in my other example).
And what happens if somebody specifies a query like in my example, f.e. 
if he did not fully understand how to use it? Is an exception raised?
I still see a problem here...

>> I still do not like the many $op's inside, but I think the query is 
>> easier to read than your examples.
> 
> Basically the variable and method names are shorter, no?
Umm, I think it is the way you specify the query tree which is different.


You specify "matches .... andMatches ..." and I specified 
andMatches(..., ...), so it is easier to see the tree:

	and
    ...	    ...

I think the difference is if you mostly think in trees or in natural 
language - or how do you see it?

Greets,
Sebastian


More information about the TYPO3-team-core-v5 mailing list