DB_DATAOBJECT_INT, 'nombre' => DB_DATAOBJECT_STR, 'numero' => DB_DATAOBJECT_INT, 'docente_id' => DB_DATAOBJECT_INT, ); } // now define the keys. function keys() { return array('id'); } function getFrom($nombre) { $this->nombre = $nombre; return $this->find(true); } } ?>