I'm running a test that is calling grabEntityFromRepository:
$testVendor = $I->grabEntityFromRepository(Customer::class, ['customerType' => CustomerType::VENDOR]);
Which would return multiple results of it was a normal query, but I thought this method should only return a single result.
[Doctrine\ORM\NonUniqueResultException] More than one result was found for query although one row or none was expected.
Is there something else I'm missing here - why would it throw this error?