<?phpclassQueryTest_EntryextendsDoctrine_Record{/** * Table structure. */publicfunctionsetTableDefinition(){$this->hasColumn('authorId','integer',4,array('notnull'));$this->hasColumn('date','integer',4,array('notnull'));}/** * Runtime definition of the relationships to other entities. */publicfunctionsetUp(){$this->hasOne('QueryTest_User as author','QueryTest_Entry.authorId');}}