[TYPO3-mvc] Transition Guide for Persistance Rewrite

Jochen Rau jochen.rau at typoplanet.de
Mon Jul 27 16:58:09 CEST 2009


Hi Steffen.

I am working on a solution for "raw" statements. My current sketch is 
(inside the Repository class):

$query = $this->createQuery('Tx_BlogExample_Domain_Model_Blog');
$query->statement(
	'SELECT * FROM tx_blogexample_domain_model_blog WHERE
	SUBSTRING(title,1,1) LIKE BINARY 'B' AND description LIKE
	'%blog%' ORDER BY title ASC');
$result = $query->execute();

Regards
Jochen

Steffen Ritter wrote:
> Steffen Ritter schrieb:
>> $whereStatement = ' SUBSTRING(streetname,1,1) LIKE BINARY \''
>> .strtoupper($index) .'\'';
> Seems that there is no way to get a Query-Object representation of
> this.. Anny Ideas how to get this working?
>
> regards Steffen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list