Exemplo n.º 1
0
 public function getPais(PropelPDO $con = null)
 {
     if ($this->aPais === null && $this->fk_pais_id !== null) {
         $c = new Criteria(PaisPeer::DATABASE_NAME);
         $c->add(PaisPeer::ID, $this->fk_pais_id);
         $this->aPais = PaisPeer::doSelectOne($c, $con);
     }
     return $this->aPais;
 }