Tharos / LeanMapper

Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
MIT License
87 stars 35 forks source link

Entity: Fatal error when trying to operate with deleted entity #73

Closed janedbal closed 10 years ago

janedbal commented 10 years ago

If I do something like this I get fatal error:

$entity = $repo->getSingle();
$repo->delete($entity);
$repo->anotherEntity; // Call to a member function getImplicitFilters() on a non-object
Tharos commented 10 years ago

Good point, thank you!