Location: PHPKode > scripts > ORM mapping class > orm-mapping-class/ExampleObject.php
<?php
class ExampleObject extends BaseObject {
    public function GetTableName() {
        return 'exampleobjects';
    }
    public static function &ById($id) {
        self::GetById($id);
    }
    public function &GetExample2s() {
        $ex2proxy = new ExampleObject2();
        return $ex2proxy->GetByIds($ex2proxy->GetIds('WHERE example_id="'.Mysql::EscapeString($this->IdValue()).'"'));
    }
}
?>
Return current item: ORM mapping class