Location: PHPKode > scripts > ORM mapping class > orm-mapping-class/ExampleObject2.php
<?php
class ExampleObject2 extends BaseObject {
    public function IdField() {
        return 'example2id';
    }
    public function GetTableName() {
        return 'exampleobjects2';
    }
    public static function &ById($id) {
        self::GetById($id);
    }
    public function &GetExample() {
        return ExampleObject::ById($this->example_id);
    }
}
?>
Return current item: ORM mapping class