Kyle B. Johnson

Results 10 comments of Kyle B. Johnson
trafficstars

I was having some serialized data override while trying to update another column. If a serialized row is not set for update, then the serialize observer creates an empty column...

Proposed fix for Issue #150 (Support for DBPrefix) Use the class variable `$_database` to add `dbprefix` as opposed to assuming the default `$this->db` connection. `$this->_table = $this->_database->dbprefix($this->_table);`

Perhaps instead of changing with(), what about introducing with_all() or with_r(), recursive? I recently looked at overriding with(), but realized that I did not always need the full recursion.

It seems to be passing a boolean argument, being 'true' if it is the last iteration of the loop. However, looking at line [207](https://github.com/jamierumbelow/codeigniter-base-model/blob/master/core/MY_Model.php#L207) (this insert method being called form...

I think this would be outside of the scope of a base model. Since your model extends the base model, this would be added to your model (as an extension)....

Without modifying the code base, you could extend `My_Model` to clean the data based on what you expect as the input and write tests to verify. I believe this `My_Model`...

You could run a `try {} catch{}` on your own code when you call a query (similar to what is being discussed above). It won't fix the error, but it...

"How to use throw exception in mysql database connect" http://stackoverflow.com/a/9836727 ``` try { if ($db = mysqli_connect($hostname_db, $username_db, $password_db)) { //do something } else { throw new Exception('Unable to connect');...

I will look into implementing an exceptions-based error handling system, also.

You should be able to limit the number of results by chaining `->limit(x)` inside your call. Line 762-769 of `My_Model`: ``` /** * A wrapper to $this->_database->limit() */ public function...