public function getUltimoEstadoId() { return NotaPedidoPeer::retrieveUltimoEstado($this->getId(), false); }