Closed defektrain closed 6 years ago
Hello, Laravel 5.6 and Analogue 5.6.8 and PostgreSQL.
I have an issue with using softDeletes, for example:
class User extends Entity { }
class UserMap extends EntityMap { public $softDeletes = true; }
And a table in DB with fields id, login and deleted_at (timestamp).
id
login
deleted_at
When I try to delete:
$mapper = mapper(User::class); $user = $mapper->find($id); $mapper->delete($user);
I get next error:
Analogue \ ORM \ Exceptions \ EntityMapNotFoundException No Map registered for Analogue\ORM\Events\Deleting …/vendor/analogue/orm/src/System/Manager.php459
Can you help me with that? Thanks.
Thank you for reporting it; i just released a patch that should fix it; can you run composer update and confirm it works for you ?
composer update
Yes, now it's working, thank you.
Hello, Laravel 5.6 and Analogue 5.6.8 and PostgreSQL.
I have an issue with using softDeletes, for example:
And a table in DB with fields
id
,login
anddeleted_at
(timestamp).When I try to delete:
I get next error:
Can you help me with that? Thanks.