Example #1
0
 public static function getTypeFromName($name)
 {
     $type = MediaType::findFirst(["conditions" => "name = ?1", "bind" => array(1 => $name)]);
     return $type;
 }