Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need help with this error #16

Closed
ivanmunozruiz opened this issue Mar 1, 2022 · 2 comments
Closed

I need help with this error #16

ivanmunozruiz opened this issue Mar 1, 2022 · 2 comments

Comments

@ivanmunozruiz
Copy link

Im getting this error and I don't know why

Fidry\AliceDataFixtures\Bridge\Doctrine\Persister\ObjectManagerPersister::getMetadata(): Argument #2 ($object) must be of type object, array given, called in /srv/api/vendor/theofidry/alice-data-fixtures/src/Bridge/Doctrine/Persister/ObjectManagerPersister.php on line 164

@Philostastically
Copy link

I get this too, but only after updating from 2.9.0. I'm not sure if it's related, but we've been having an issue for a while now where the first test in any class with RefreshDatabaseTrait will take >30secs to run. Here's the stack trace

 backend/vendor/theofidry/alice-data-fixtures/src/Bridge/Doctrine/Persister/ObjectManagerPersister.php:111
 backend/vendor/theofidry/alice-data-fixtures/src/Bridge/Doctrine/Persister/ObjectManagerPersister.php:158
 backend/vendor/theofidry/alice-data-fixtures/src/Bridge/Doctrine/Persister/ObjectManagerPersister.php:119
 backend/vendor/theofidry/alice-data-fixtures/src/Bridge/Doctrine/Persister/ObjectManagerPersister.php:79
 backend/vendor/theofidry/alice-data-fixtures/src/Loader/PersisterLoader.php:88
 backend/vendor/theofidry/alice-data-fixtures/src/Loader/PurgerLoader.php:119
 backend/vendor/theofidry/alice-data-fixtures/src/Loader/FileResolverLoader.php:72
 backend/vendor/hautelook/alice-bundle/src/Loader/DoctrineOrmLoader.php:157
 backend/vendor/hautelook/alice-bundle/src/Loader/DoctrineOrmLoader.php:123
 backend/vendor/hautelook/alice-bundle/src/PhpUnit/BaseDatabaseTrait.php:76
 backend/vendor/hautelook/alice-bundle/src/PhpUnit/RefreshDatabaseTrait.php:36
 backend/vendor/symfony/framework-bundle/Test/WebTestCase.php:46
 backend/tests/Controller/Api/Constellation/ConstellationAPITestCase.php:19```

@theofidry
Copy link
Owner

This is most likely related to theofidry/AliceDataFixtures#207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants