| 1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * Class LocationFile
- *
- * @property int $id
- * @property int $location_id
- * @property int $type
- * @property string $dts_uploaded
- */
- class LocationFile extends Model {
- protected static $table = "location_file";
- protected static $id_field = "id";
- protected static $fillable_fields = ["location_id", "type", "dts_uploaded"];
- const TYPE_PHOTO = 1;
- // Object methods
- /**
- * @return Location|null
- * @throws Exception
- */
- public function getLocation(): ?Location {
- return Location::get($this->location_id);
- }
- }
|