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