Re: hasMany and find()

2014-11-17 Thread John Andersen
Ok, if you cannot modify the database tables, then the other option is to use sub-queries, see the CakePHP book at: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#sub-queries My understanding of this, is that you first construct the SQL statement for finding all the parent ids

CakeDC Search plugin find in hasmany

2014-11-17 Thread Salines
Hi, can someone show me how it looks correct $filterArgs settings if I need to search data in hasmany related model. example, User hasMany Orders. User model: public $filterArgs = array( 'id' = array( 'type' = 'value' ), 'name' = array( 'type' = 'like' ), 'company' = array( 'type' = 'like' ),

Re: Plugin login problem

2014-11-17 Thread Jose
The Form::create() call was done incorrectly, it should be: $this-Form-create('User', array('url' = array('admin' = false, 'plugin' = null, 'controller' = 'users', 'action' = 'login'))); On Thursday, November 6, 2014 5:11:36 AM UTC-5, Lucky1968 wrote: Hi, I'm using CakePHP 2.3.10 and I

Re: CakeDC Search plugin find in hasmany

2014-11-17 Thread Salines
Solved, // @Model Order 'order_date' = array( 'type' = 'subquery', 'method' = 'orderDate', 'field' = 'User.id' ), public function orderDate($data = array()) { } -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: Postgresql for Oracle in CakePHP

2014-11-17 Thread mark_story
Hey Carlos, The last version of CakePHP that had support for Oracle was 1.3. We've not been able to get support for oracle into 2.x or 3.0 primarily because of licensing issues and lack of experience. Because of how oracle is licensed adding it to one of our existing continuous integration