models being assigned to themselves - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: models being assigned to themselves (/showthread.php?tid=2667) |
models being assigned to themselves - El Forum - 08-17-2007 [eluser]Unknown[/eluser] I'm on 1.5.4 and I'm noticing that models are being assigned to themselves by the function _assign_libraries in the Model.php library. I think line 62 should be changed from Code: if ( ! isset($this->$key) AND $key != $this->_parent_name) to Code: if ( ! isset($this->$key) AND $key != strtolower($this->_parent_name)) because the key will always be all lowercase while the model's _parent_name variable will be capitalized. |