[TYPO3-mvc] Persistence_rewrite merged!

Jochen Rau jochen.rau at typoplanet.de
Mon Jul 13 12:33:03 CEST 2009


Hi Frans.

Second part ;-)

> Let's say I want to find records on the name and I have two strings I
> want to compare it with: testa and testb
> 		$result = $query->matching(
> 			$query->logicalOr(
> 				$query->like('name', '%testa%'),
> 				$query->like('name', '%testb%')
> 			)
> 		)
> This will generated the following sql:
>   ... AND ( (tx_myextension_domain_model_table.name LIKE '%testb%') OR
> (tx_myextension_domain_model_table.name LIKE '%testb%') )
> Because of the operands are stored in query in this associative array in
> Tx_Extbase_Persistence_Query:
> 		$this->operands[$propertyName] = $operand;
>
> Appears to me not the intended behaviour?

You are right. This is also an issue in the TYPO3CR. I have filed an issue:

http://forge.typo3.org/issues/show/3885

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list