RVRNEXT-24 modify model Community to have slug
This commit is contained in:
parent
6d6e93d711
commit
715f27a9bc
@ -1,9 +1,9 @@
|
||||
<?php namespace RVR\PersistentData\Model;
|
||||
|
||||
use DateTime;
|
||||
use SokoWeb\PersistentData\Model\Model;
|
||||
use SokoWeb\PersistentData\Model\ModelWithSlug;
|
||||
|
||||
class Community extends Model
|
||||
class Community extends ModelWithSlug
|
||||
{
|
||||
protected static string $table = 'communities';
|
||||
|
||||
@ -11,6 +11,8 @@ class Community extends Model
|
||||
|
||||
protected static array $relations = ['main_currency' => Currency::class];
|
||||
|
||||
protected static string $slugSource = 'name';
|
||||
|
||||
private string $name = '';
|
||||
|
||||
private string $currency = '';
|
||||
|
Loading…
Reference in New Issue
Block a user