[TYPO3-team-core-v5] RFC: fluent interface to query persistence
Bastian Waidelich
mailinglistDELETEME at wwwision.de
Wed Jul 23 09:24:55 CEST 2008
Karsten Dambekalns wrote:
>> or am I missing something?
> Yes: What object is the second "matching" called on?
doh ;)
I was thinking about function pointers... which don't exist in PHP.
> There are no write queries. [...]
> 2. When you add a Blog object to that Repository it will be persisted
> transparently, along with the data it holds (Aggregate).
Ok, that makes sence. I only wonder: If I want to update one property of
multiple objects, do I have to load the objects with all their
properties into memory to be able to modify them?
>> Did you have a look at the Query language of Doctrine:
> Been there, done that. That language is close to SQL, which has a lot of
> shortcomings
In my opinion the biggest drawback to SQL is, that its queries are
strings and thus not testable and error-prone. But the syntax itself is
a really intuitive and powerful way to query and modify relational data.
That's one reason why Microsoft started their popular LINQ project - to
diminish the gap between relational and in-memory data.
> the most severe one being that people will think it is SQL
So what? One day FQL (FLOW3 query language) could be as powerful and far
beyond ;)~
> And I would like to avoid writing a parser (or using one from some other project).
true.
keep up
Bastian
--
slice up the elephant, baby
More information about the TYPO3-team-core-v5
mailing list