Exemplo n.º 1
0
 /**
  * Does attribute exist? Includes model IDs
  *
  * @param string $attr Name of attribute
  * @return bool
  */
 public static function has_attr($attr)
 {
     $model = get_called_class();
     return $attr == $model::get_id_col() || parent::has_attr($attr);
 }