Miss Khushbu
unread,Nov 17, 2012, 8:46:07 AM11/17/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to agile-too...@googlegroups.com
Hi,
I was using this model and every thing was fine till I updated my atk to git master. now expression is giving some sort of problem.
class Model_HostelRoom extends Model_Table{
var $table="rooms";
function init(){
parent::init();
$this->hasOne('Hostel','hostel_id');
$this->addField('room_no');
$this->addField('capacity');
// $this->hasMany('HostelRoom','room_id');
$this->hasMany('RoomAllotement','room_id');
$this->addExpression('alloted')->set(function ($m,$q){
return $m->refSQL('RoomAllotement')->count();
});
}
}
if I comment this the page works fine.
any suggestions or
what are the changes done in atk master regarding this ..
Thanks in advance ...