Nicolas400
(Nicolas Machado)
1
Hi, some have an example of using Customs FK and PF in the relations function.
I try this with no success:
//'estados' => array(self::BELONGS_TO, 'TiposGenerales', array('estado'=>'cod'), 'condition'=>' estados.tipo = \'ESTADO_DEF_CUOTA\'' ),
Is says that parameter 2 expected to be String and an array was passed.
Best regards
andy_s
(Arekandrei)
2
The syntax looks correct, for Yii 1.1.9. Are you sure you have this version installed?
Nicolas400
(Nicolas Machado)
3
I found this in yiiBase.php
public static function getVersion()
{
return '1.1.8';
}
looks like i’m on 1.1.8 !
tri
(tri - Tommy Riboe)
4
You’ll have to upgrade.
http://www.yiiframework.com/files/CHANGELOG-1.1.9.txt
/Tommy