ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

ZF3 compatibility issue after new changes. #105

Closed meysamabl closed 6 years ago

meysamabl commented 6 years ago

Hi, I am migrating from zf2 to zf3 and I am getting the following error.

Fatal error: Declaration of ZfcUserDoctrineORM\Mapper\User::insert(ZfcUser\Entity\UserInterface $entity) must be compatible with ZfcUser\Mapper\User::insert(ZfcUser\Entity\UserInterface $entity, $tableName = NULL, ?Zend\Hydrator\HydratorInterface $hydrator = NULL) my_project/vendor/zf-commons/zfc-user-doctrine-orm/src/ZfcUserDoctrineORM/Mapper/User.php on line 11

I could solve this by implementing the mapper interface instead of extending ZfcUserMapper