Hi!, did you just read what my answer was?
I tried, but the find statement simply ignores my condition with the 
contain.
Do you know why or what I am doing wrong?


Am Freitag, 9. März 2012 14:30:49 UTC+1 schrieb heohni:
>
> Hi,
>
> I want to use such a association:
>
> var $hasMany = array(
> 'Comment' => array(
> 'className' => 'Comment',
> 'foreignKey' => 'user_id',
> 'conditions' => array('Comment.status' => '1'),
>     )
> ); 
>
> can I somehow use my current session value for the condition?
>
> Like
> 'conditions' => array('UEB_FKID_SPR_ID' => 
> CakeSession::read('Config.languageID')) ?
>
> The way I tried I get an error:  *Parse error*: syntax error, unexpected 
> '(', expecting ')'  
>
> Is there somehow another way?
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to