| 1234567891011121314151617181920212223242526 |
- <?php
- /**
- * Class VenueType
- *
- * @property int $id
- * @property string $name
- */
- class VenueType extends Model {
- protected static $table = "venue_type";
- protected static $id_field = "id";
- protected static $fillable_fields = ["name"];
- // Static methods
- /**
- * @return VenueType[]
- * @throws Exception
- */
- public static function getAll(): array {
- return self::query([], ["sort" => "name"]);
- }
- }
|