Re: CakePHP 3.0 orm query question

2014-08-26 Thread José Lorenzo
$query = $table-find() $query-select(['distance' = $query-newExpr($rawSQL)])-having(['distance =' = $distance]) On Monday, August 25, 2014 2:59:01 AM UTC+2, Andras Kende wrote: Hello, Im trying to convert this geolocator query from 2.5 to 3.0 orm but no luck so far. CakePHP 2.5, this

Re: CakePHP 3.0 orm query question

2014-08-26 Thread Andras Kende
Hi Jose, I got it working as : $query = $this-find('all', array( 'limit' = 200, 'order' = array( 'distance' = 'ASC', 'name' = 'ASC', ),

CakePHP 3.0 orm query question

2014-08-24 Thread Andras Kende
Hello, Im trying to convert this geolocator query from 2.5 to 3.0 orm but no luck so far. CakePHP 2.5, this works fine: $results = $this-find('all', array( 'limit' = 200, 'order' = array( 'distance' = 'ASC', 'name' = 'ASC', ),