[eluser]talmdal[/eluser]
Hi. I apologize in advance if this was already answered somewhere and I just couldn't find it.
I'm just starting out with CodeIgniter and want to implement something like the following
class FuRecord extends BarRecord {
var $_id;
var $_field1;
function getId() {return $this->_id;}
function getField1() { ... }
function setField1() { ... }
}
class BarRecord extends IgnitedRecord {
var $_id;
var $_field2;
function getId() {return $this->_id;}
function getField2() { ... }
function setField2() { ... }
}
These classes would correspond to the following database tables
Fu and Bar.
It seems from what I've read IgnitedRecord should allow me to set things up so that when I access the Fu record I will also read the corresponding Bar record. But I'm not sure how to connect (define them with the redefined relationships. or is there a better way that in my newness, I just haven't found.
Any help would be greatly appreciated.
Thanks