Questions tagged [laravel-doctrine]

A drop-in Doctrine2 implementation for Laravel 5+

5 questions
3
votes
1 answer

Call to undefined method newCollection when using factories with Laravel-Doctrine

I would like to use Model factories, but I get this error: 1) Tests\Factory\UserFactoryTest::testUserCount Error: Call to undefined method…
Iter Ator
  • 8,226
  • 20
  • 73
  • 164
2
votes
0 answers

Doctrine prevent error on OneToOne association where record doesn't exist in database

Problem I'm trying to create a OneToOne association in a Laravel app using Doctrine. When trying to access the association I'm getting this error. Entity of type 'Status' for IDs clientId(1) was not found Versions: Doctrine: 2.7.5 Laravel:…
shmuels
  • 1,039
  • 1
  • 9
  • 22
2
votes
0 answers

getting doctrine package error after run an exist laravel project in my system

I have just setup a laravel exist project but i am getting an error while i run php artisan command or any migrate command whenever i run any command i got doctrine package error. i am not getting idea how to fix it and run this project.i have also…
Shakti Sisodiya
  • 218
  • 2
  • 5
  • 14
1
vote
1 answer

Three level inheritance in doctrine2 not loading second level data

I have a inheritance of three levels using class table inheritance like this: Class Test namespace App\Entities\Test; use Doctrine\ORM\Mapping as ORM; /** * Class Test * @package App\Entities\Test * @ORM\Entity *…
Leandro Jacques
  • 413
  • 5
  • 19
1
vote
1 answer

Laravel/Doctrine randomly tries to connect to production database

I'm randomly getting server errors because Laravel is trying to connect to the production database, despite the fact that I have a .env file set up and a majority of the time it connects to the correct database. Here is the error I am…
kjdion84
  • 9,552
  • 8
  • 60
  • 87