[Solar-talk] Solar_Sql_Model::fetchNew() possible bug
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Mar 22 08:45:46 PDT 2007
I think there is a bug in Solar_Sql_Model::fetchNew(), lines 1202-1204:
// set placeholders for relateds.
foreach ($this->_related as $key) {
$data[$key] = null;
}
$this->_related is an array with key => array(), so it generates an
'illegal offset type' error. I think it should be:
// set placeholders for relateds.
foreach ($this->_related as $key => $val) {
$data[$key] = null;
}
I'm just checking and will open a ticket later.
rodrigo
More information about the solar-talk
mailing list