Re: checkbox value becomes default (1) after submit

2008-09-19 Thread rob30
I have exactly the same problem and cant find solution :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: problem with HABTM find

2008-09-09 Thread rob30
$this->Conference->bindModel(array( 'hasOne' => array( 'ConferencesSphere', 'FilterSphere' => array( 'className' => 'Sphere', 'foreignKey' => false, 'conditions' => array('FilterSphe

problem with HABTM find

2008-09-08 Thread rob30
Hi, Conference model: var $hasAndBelongsToMany = array('Sphere' => array('className'=> 'Sphere',

Re: Problem in using Ajax to submit a form

2008-04-25 Thread rob30
Hi, Maybe try submiting not by ajax->form but ajax->submit eg echo $form->create('Sphere'); ... echo $ajax->submit('save', array('url'=>'saveSpheres','update'=>'sphere_val', 'before' => 'prepareSpheres()')); --~--~-~--~~~---~--~~ You received this message because

Re: How to use "not in" in new find() ?

2008-04-24 Thread rob30
ups sorry it works as expected, thanks ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: How to use "not in" in new find() ?

2008-04-23 Thread rob30
I've tried 'conditions' => array('not' => array('id' => $model_ids; but its not ok :( it generates: WHERE NOT ((`id` IN (2, 5) )) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

How to use "not in" in new find() ?

2008-04-22 Thread rob30
Hi, How to use "not in" in new find() syntax? "in" is working fine $this->Model->find('list', array('fields' => array('id', 'name'), 'conditions' => array('id' => $model_ids))); generates: SELECT `Model`.`id`, Model`.`name` FROM `models` AS `Model` WHERE `id` IN (2, 5) but how to generate WHER