Giter VIP home page Giter VIP logo

rad-fixtures-load's People

Contributors

akovalyov avatar alexpozzi avatar antoinelelaisant avatar chr-hertel avatar clairefortin avatar djeg avatar ivan-mosiev-altexsoft avatar lcouellan avatar pedrotroller avatar polc avatar sgomez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rad-fixtures-load's Issues

Symfony3 capability

Problem with installing bundle in symfony3.
in composer.json I have:
"symfony/symfony": "3.1.x-dev",
"knplabs/rad-fixtures-load": "dev-master",

Output:
Problem 1
- Installation request for knplabs/rad-fixtures-load dev-master -> satisfiable by knplabs/rad-fixtures-load[dev-master].
- Conclusion: remove symfony/symfony 3.1.x-dev
- knplabs/rad-fixtures-load dev-master requires symfony/http-kernel ~2.0 -> satisfiable by symfony/symfony[2.0.x-dev]

Locale in custom provider

my_bundle.my_provider:
    class: My\Provider
    tags:
        - { name: knp_rad_fixtures_load.provider }

How do I get the locale in my custom provider or do I need to register multiple services for different languages? Any arguments I can use?

Add Alice v3 support

I apologize for the spammy issue, but as rad-fixtures-load is a one of the consumer of alice, I though worth informing you that the next version v3 is on it's way. So if you noticed something you would like to change at alice level, now is a good time :)

Purge tables instead of dropping them for schema reset

When resetting the schema, it is actually dropped and recreated using metadata of all classes. The problem is that it doesn't take into account all the changes that could have been done with migrations.

Instead, I think we should simply REMOVE all entries from the tables. That's actually what data-fixtures does.

Fixtures path

As of now Alice fixtures must be placed under Resources/fixtures/orm.

Wouldn't it better to keep the DoctrineFixtures behavior which allows to specify the path where the loader is declared and with a default file path? And wouldn't it be better to keep the default path and make it configurable?

That would have the benefits to:

  • ease the transition if previously using another bundle to do this kind of task
  • keep the same convention while allowing one to define it's own convention and keeping the interesting feature you introduced which is loading fixtures for a given bundle
  • being more generic and not too much Symfony specific

Besides for the filtering you're using a file extension convention system with .yml, .dev.yml, .prod.yml and so on. This is fine if you don't have too much files. If you have even just 10 files for each, it's much more practical to use separate folders. To retake the example of what you can currently achieve with hautelook/AliceBundle, you can have:

DataFixtures
├── Prod
|   ├── DataLoader.php
|   ├── ...
|   └── fixtures.yml
├── Inte
|   ├── DataLoader.php
|   ├── ...
|   └── fixtures.yml
└── Dev
    ├── DataLoader.php
    ├── ...
    └── fixtures.yml

And keep things clear.

change the name

Why such a weird name and not sticking to bundle's name conventions like AliceBundle or AliceFixturesBundle?

Otherwise great library, happy to have an alternative to Hautelook/AliceBundle which is more well designed! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.