[TYPO3-mvc] Casting objects

Jochen Rau jochen.rau at typoplanet.de
Thu Jul 9 12:21:17 CEST 2009


Hi Xavier.

>> I am going to implement another feature (one of the last ones before
>> feature freeze) which enables you to say
>>
>> $query = $this->queryFactory->create($className());
>> $query->setStatement('SELECT ... FROM (SELECT ... FROM ... WHERE ...)');
>> $objects = $query->execute();
>
> Great! But did you rewrite the SQL parser from TYPO3? I guess no, this
> means that such statements won't be able to be passed to DBAL.

I have written an SQL parser (see 
Tx_Extbase_Persistence_Storage_Typo3DbBackend). It translates the 
generic Query Object Model into (hopefully) valid SQL. After that, It 
invokes $GLOBALS['TYPO3_DB]->sql_query($sqlString).

Does that work for your use case?

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list