[debug]
This commit is contained in:
parent
45c4206686
commit
5c9b9f140d
@ -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;
|
||||
|
@ -113,6 +113,9 @@ class PersistentDataManager implements IPersistentDataManager
|
||||
}
|
||||
}
|
||||
|
||||
var_dump($modified);
|
||||
var_dump($diff);
|
||||
|
||||
if (count($modified) > 0) {
|
||||
if ($model instanceof ModelWithSlug && isset($modified['slug'])) {
|
||||
$modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']);
|
||||
|
Loading…
Reference in New Issue
Block a user