laravel-doctrine / orm

A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen

Home Page:http://laraveldoctrine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG laravel-8-factories

Lukasz93P opened this issue · comments

Package version: 1.7.1

Laravel version: 8.3.0

Factories for doctrine entities works with Laravel 8, along with factories for eloquent models.

Actual behaviour

Factories are not working.

Steps to reproduce the behaviour

Very simple, just create one factory for Eloquent model and one for doctrine entity. Doctrine Factory will try to redeclare class declared inside Eloquent factory.

I know exactly how to fix this problem, it requires only few lines of code inside one class, so I can help with that but I want to know if You agree with me?

I have found a solution that does not require changes in the package code.