Ejemplo n.º 1
0
 static function getTypeId($type)
 {
     $address_type = AddressTypes::findOne(array('conditions' => array("`name` = ?", $type)));
     if (!is_null($address_type)) {
         return $address_type->getId();
     } else {
         return null;
     }
 }