Jamie Rumbelow
Jamie Rumbelow
Excellent, thank you. Do you think you'll be able to write some unit tests for this?
Just to let you guys know I am following this conversation, I'll spend a bit of time getting things discussed and merged this weekend. Thanks for your contribution and patience.
Could you show an example of where this might be useful?
Rather than using `__get()` - your implementation is wrong anyway, since you're just returning the property name as a string value - wouldn't it be better to just convert over...
Thanks – if you could get rid of the modification to the code I'll merge it. The primary key is referencing the foreign model. Just letting people know that the...
Thanks! A couple of things: - Do you think you could write tests for this? - I see that you're using array literal bracket syntax on line 821 (`$config=[];`). This...
I think this is a hangover from a previous version of the code (where I needed the last iteration of the loop). Don't worry about it – I got rid...
Of course you can! :-) ``` php class Post_model extends MY_Model { public function search($column, $term, $w = 'both') { $this->db->like($column, $name, $w); return $this; } } ``` Use it...
What Kyle said :-) On 1 April 2014 18:48, Kyle B. Johnson [email protected] wrote: > I think this would be outside of the scope of a base model. > Since...
When it gets much more complicated than a basic relationship, I'd start writing custom methods and using JOINs. The relationship functionality here is really only for quick rough-and-ready jobs. On...