Steffen Villadsen

Results 5 comments of Steffen Villadsen

The syntax of the BaseModel seems to have changed try: ``` if (in_array($relationship, $this->_with)) { $this->load->model($options['model'], $relationship . '_model'); foreach ( $this->_with as $r ) { // Adding more _with...

I need some way of protecting my site from database errors. However i do not see any way of checking for this in the base model. i call $one_entry=$this->vesMapper->get($ves_id); If...

I guess i need to clarify. It is not the data i expect errors from (that is handled just fine by validation) Is is error in the database connection. MySQL...

No, that is my point! No errors are thrown! code after modifications: I do not see how to get my exception without modifying the code ``` class MY_model { //missing...

I will consider to do so. However I am not certain the exception-based approach is needed. My problem is that there is no error handling for dB-connection failure... or rather...