Compare commits

...

1 Commits

Author SHA1 Message Date
00e77aef62
[debug] 2023-05-07 01:26:23 +02:00
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,8 @@ abstract class ModelWithSlug extends Model
{
if ($this->slug === null) {
$this->slug = $this->generateSlug();
var_dump('getSlug called');
var_dump($this->slug);
}
return $this->slug;

View File

@ -113,6 +113,10 @@ class PersistentDataManager implements IPersistentDataManager
}
}
var_dump($original);
var_dump($modified);
var_dump($diff);
if (count($modified) > 0) {
if ($model instanceof ModelWithSlug && isset($modified['slug'])) {
$modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']);