| @@ -5,8 +5,26 @@ | ||
| 5 | 5 | |
| 6 | 6 | use FluentCommunity\App\Functions\Utility; |
| 7 | 7 | use FluentCommunity\Framework\Support\Arr; |
| 8 | 8 | |
| 9 | +/** | |
| 10 | + * @property int $id | |
| 11 | + * @property int|null $created_by | |
| 12 | + * @property int|null $parent_id | |
| 13 | + * @property string $title | |
| 14 | + * @property string $slug | |
| 15 | + * @property string|null $description | |
| 16 | + * @property string|null $logo | |
| 17 | + * @property string|null $cover_photo | |
| 18 | + * @property string|null $type | |
| 19 | + * @property string|null $privacy | |
| 20 | + * @property string|null $status | |
| 21 | + * @property int|null $serial | |
| 22 | + * @property array $settings | |
| 23 | + * @property string|null $created_at | |
| 24 | + * @property string|null $updated_at | |
| 25 | + * @property-read mixed $spaces | |
| 26 | + */ | |
| 9 | 27 | class SpaceGroup extends Model |
| 10 | 28 | { |
| 11 | 29 | protected $table = 'fcom_spaces'; |
| 12 | 30 | |
| @@ -42,9 +60,9 @@ | ||
| 42 | 60 | $model->created_by = get_current_user_id(); |
| 43 | 61 | } |
| 44 | 62 | |
| 45 | 63 | if (empty($model->slug)) { |
| 46 | - $slug = sanitize_title($model->title, time()); | |
| 64 | + $slug = sanitize_title($model->title, (string) time()); | |
| 47 | 65 | $model->slug = $slug; |
| 48 | 66 | } |
| 49 | 67 | |
| 50 | 68 | $model->type = static::$type; |