RVRNEXT-24 modify model Community to have slug

This commit is contained in:
Bence Pőcze 2023-05-07 01:43:45 +02:00
parent 6d6e93d711
commit 715f27a9bc
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -1,9 +1,9 @@
<?php namespace RVR\PersistentData\Model; <?php namespace RVR\PersistentData\Model;
use DateTime; 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'; protected static string $table = 'communities';
@ -11,6 +11,8 @@ class Community extends Model
protected static array $relations = ['main_currency' => Currency::class]; protected static array $relations = ['main_currency' => Currency::class];
protected static string $slugSource = 'name';
private string $name = ''; private string $name = '';
private string $currency = ''; private string $currency = '';