Comments (7)
OrderedFixtureInterface
doesn't extend FixtureInterface
, which probably means something like OrderedFixtureInterface&FixtureInterface
should be used somewhere.
from data-fixtures.
Hard to tell where without the source code of tests/Functional/FunctionalTestCase.php
, of course.
from data-fixtures.
@greg0ire this is what the class looks like:
xxx
protected function refreshFixtures(): void
{
$loader = new Doctrine\Common\DataFixtures\Loader();
$fixture = new CustomFixture();
$fixture->setContainer($this->getKernelBrowser()->getContainer());
$loader->addFixture($fixture);
$purger = new Doctrine\Common\DataFixtures\Purger\ORMPurger();
$executor = new Doctrine\Common\DataFixtures\Executor\ORMExecutor($this->getEntityManager(), $purger);
$executor->execute($loader->getFixtures());
}
from data-fixtures.
Ok, so the issue is with
Do you feel up to making it more precise?
Kind of makes me wonder why OrderedFixtureInterface
doesn't extend FixtureInterface
in the first place though 🤔
from data-fixtures.
Ok, so the issue is with
Do you feel up to making it more precise?
Kind of makes me wonder why
OrderedFixtureInterface
doesn't extendFixtureInterface
in the first place though thinking
Yes i think its in the Loader.php
, i haven't debugged the issue much i could try to change the return types but i also wonder why that OrderedFixtureInterface
doesn't extend from FixtureInterface
haha i dont know who introduced it maybe they know best.
I saw docs updates where done in #389 but they made it consistent with the property $fixtures
docs
from data-fixtures.
i dont know who introduced it maybe they know best
If only there was a way for us to know that, like some kind of code history tool 🤔
Trolling aside it was introduced more than 10 years ago in #5 , so… long shot, but @l3pp4rd , super long shot, but maybe you have some input you can provide on this?
from data-fixtures.
Haha fair, i didn't look that fair back ;p
from data-fixtures.
Related Issues (20)
- ORMPurger bug in doctrine/dbal 3.x HOT 2
- Feature request: Pass group (or groups) that were used to call the fixture
- Not loading fixtures HOT 1
- Separate Fixtures Class Throws many types of errors HOT 3
- phpspec/prophecy is now explicitely needed for tests
- Allow to pass the class to getReference.
- Feature request: ORMPurger cache statements HOT 2
- Cant use an entity with ReferenceRepository if its name ends with Proxy HOT 6
- Psalm error for referenceRepository HOT 4
- Use of ObjectManager->getClassMetadata on the className in ReferenceRepository methods breaks expected behaviour
- Why ObjectManager instead of EntityManagerInterface? HOT 2
- PHPStan error when using AbstractFixture getReference HOT 2
- ReferenceRepository won't work with more than one EntityManager HOT 4
- Purging of tables with multiple mapped entities HOT 2
- LifecycleEventArgs::getEntity() is deprecated (used in ORMReferenceListener) HOT 3
- Problem with dot in table name when using SQLite HOT 4
- Implicit transaction commit in mysql TRUNCATE causes error "There is no active transaction."
- Persistent ReferenceRepository to be used in tests
- Dependent fixtures are not issued when attempting to call a fixture by its short name via --group
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-fixtures.