Skip to content

Commit

Permalink
change constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Aug 3, 2023
1 parent 6b7db84 commit 3aa888b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mvc/Model/Blameable/Deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Zemit\Mvc\Model\Blameable;

use Zemit\Mvc\Model;
use Zemit\Db\Column;
use Zemit\Mvc\Model\AbstractTrait\AbstractBehavior;
use Zemit\Mvc\Model\Behavior\Transformable;
use Zemit\Mvc\Model\Identity;
Expand Down Expand Up @@ -47,7 +47,7 @@ public function initializeDeleted(?array $options = null): void
'beforeDelete' => [
$fieldBy => $this->getCurrentUserIdCallback(),
$fieldAs => $this->getCurrentUserIdCallback(true),
$fieldAt => date(Model::DATETIME_FORMAT),
$fieldAt => date(Column::DATETIME_FORMAT),
],
'beforeValidationOnUpdate' => [
$fieldBy => $this->hasChangedCallback(function ($model, $field) use ($deletedField, $deletedValue) {
Expand All @@ -62,7 +62,7 @@ public function initializeDeleted(?array $options = null): void
}),
$fieldAt => $this->hasChangedCallback(function ($model, $field) use ($deletedField, $deletedValue) {
return $model->isDeleted($deletedField, $deletedValue)
? date(Model::DATETIME_FORMAT)
? date(Column::DATETIME_FORMAT)
: $model->readAttribute($field);
}),
],
Expand Down

0 comments on commit 3aa888b

Please sign in to comment.