[Solar-talk] Sql_Model insert not working!
Jeff Surgeson
solar at 3hex.com
Sat Apr 21 11:06:50 PDT 2007
> I've noticed today that toArray() is not implemented in
> Solar_Sql_Model. So $this->fetchNew()->toArray() will never work. How
> we haven't noticed this?
> I created a simple version:
> public function toArray()
> {
> $this->_checkFocus('record');
> $data = array();
> foreach($this->_table_cols as $col_name => $spec) {
> $data[$col_name] = $this->$col_name;
> }
> return $data;
> }
> It works for me and solves my problem. I hope I'm not missing anything.
Will try it tomorrow and see if it works for me thanks a stack for sharing
it :-)
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the solar-talk
mailing list