Does your find work without the condition?

Mike Karthauser
Brightstorm limited
Tel: 07939252144

On 17 Nov 2009, at 08:12, habib <[email protected]> wrote:

> class Donor extends AppModel
> {
>    var $name = 'Donor';
>
>   var $hasOne = array(
>        'DonorDetail'=>array(
>         'className'=>'DonorDetail',
>         'foreignKey'=>'donor_id',
>         'dependent'=> true
>        )
>       );
>
>    var $hasMany = array(
>     'Organization'=>array(
>        'className'=>'Organization',
>        'foreignKey'=>'donor_id',
>        'dependent'=> true
>
>     )
>    );
>
> class DonorsController extends AppController
> {
>    var $name = 'Donors';
>    var $helpers = array('Html', 'Javascript', 'Ajax');
>
>  function view()
>   {
>
>   $this->set('users', $this->Donor->find('all', array
> ('conditions'=>array('Organization.org_name'=>"%habib%")));
> // this line does not work
>
>   }
> }
>
> please any information ..................................send me
>
> Thank you
> ---------------
> Habib
> }
>
> --
>
> You received this message because you are subscribed to the Google  
> Groups "CakePHP" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected] 
> .
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl= 
> .
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to