[FLOW3-general] statement method (sql query)
Phallin Hor
phallin at web-essentials.asia
Thu Sep 6 09:36:52 CEST 2012
On 09/06/2012 01:07 PM, Robin Lehrmann wrote:
>
>>
>> And I also try
>>
>> public function findCustomerGroupByName() {
>> $query = $this->createQuery();
>> $query->statement('SELECT * FROM employees GROUP BY name');
>> return $query->execute();
>> }
>>
> I think:
>
> public function findCustomerGroupByName() {
> $query = $this->createQuery('SELECT * FROM employees GROUP BY
> name');
> return $query->execute();
> }
Now this statement cannot help me because the string in createQuery
doesn't work. createQuery ignores all string in (). So if I write
$query = $this->createQuery('sdfsdfsdf'); it also work and return the
same result as select * from employees.
More information about the FLOW3-general
mailing list