You're not giving us any hint of what data you're passing in to your 
function. With recursive = -1 I don't believe you shouldn't be getting any LEFT 
JOINs automatically so I think you're passing in something strange.

On Monday, June 17, 2013 3:14:31 PM UTC+3, first last wrote:
>
> function evFrmCreate($model, $fields, $currentId, $limit='50'){
>   //the only reason we have limit set is because the Upload Additional 
> Information can have more 
>   // than 1 without being wrong. Where we need to se the problem with 
> other forms
>   $record = $this->$model->find('all', array( 'conditions' => 
> array($model.'.id' => $currentId),
> //   'fields' => $fields,
> //   'recursive' => -1,
>    'limit'=>$limit));
>   //pass the field to be included in the search
>   $isComplete = $this->isComplete($model, $fields, $record);
> ----------
> ----------
>  
> Thank you for writing cricket.
> I hope this is the code you want to see.
> This seems to be where the query's made.
> The error with col1 outside the tickmarks (`.`` col1) in the first post 
> causes $record to have nothing in it, causing invalid arguement 
> error in foreach() in functions like isComplete().
> Please let me know if there's something else that would help.
>  
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to