If the goal is to be interchangeable with Doctrine ORM or Doctrine MongoDB ODM, this package should be implementing the interfaces from doctrine/persistence instead of defining its own interface that have similar method names, but are not the same type (The PHP type system is nominal, so looking like a duck does not make you a duck).
If the goal is to be interchangeable with Doctrine ORM or Doctrine MongoDB ODM, this package should be implementing the interfaces from
doctrine/persistence
instead of defining its own interface that have similar method names, but are not the same type (The PHP type system is nominal, so looking like a duck does not make you a duck).