<?phpclassQueryTest_BoardextendsDoctrine_Record{/** * Initializes the table definition. */publicfunctionsetTableDefinition(){$this->hasColumn('categoryId as categoryId','integer',4,array('notnull'));$this->hasColumn('name as name','string',100,array('notnull','unique'));$this->hasColumn('lastEntryId as lastEntryId','integer',4,array('default'=>0,'notnull'));$this->hasColumn('position as position','integer',4,array('default'=>0,'notnull'));}
/** * Initializes the relations. */publicfunctionsetUp(){$this->hasOne('QueryTest_Category as category','QueryTest_Board.categoryId');$this->ownsOne('QueryTest_Entry as lastEntry','QueryTest_Board.lastEntryId');}}