user_id = $user_id; $cnt = $oid->find(); return ($cnt > 0); } /** * Get the TableDef object that represents the table backing this class * @return TableDef TableDef instance */ function tableDef() { return new TableDef($this->__table, array(new ColumnDef('canonical', 'varchar', '255', false, 'PRI'), new ColumnDef('display', 'varchar', '255', false), new ColumnDef('user_id', 'integer', null, false, 'MUL'), new ColumnDef('created', 'datetime', null, false), new ColumnDef('modified', 'timestamp'))); } }