Code Monkey home page Code Monkey logo

doctrine-fixtures's Introduction

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Usage

To install latest version of nettrine/fixtures use Composer.

composer require nettrine/fixtures

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^0.8 master 3.1+ >=8.1
stable ^0.7 master 3.1+ >=8.1

Development

See how to contribute to this package. This package is currently maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

doctrine-fixtures's People

Contributors

f3l1x avatar gappa avatar jangalek avatar josefbenjac avatar mabar avatar petrparolek avatar pryx avatar rikap avatar solcik avatar vnarek avatar vody105 avatar zarubaj avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

doctrine-fixtures's Issues

Make purge optional, not default

Not to purge database by mistake..

# no purge, append
bin/console doctrine:fixtures:load

# purge requested
bin/console doctrine:fixtures:load --purge

Could not find any fixture services to load.

Ahoj, ve verzi "nettrine/fixtures": "^0.7.1" jsem dostával pří spuštění commandu php bin/console doctrine:fixtures:load --no-interaction chybu Could not find any fixture services to load.. Po downgradu na "nettrine/fixtures": "^0.6.4" se command spustí a Fixtures najde.

LoadDataFixturesCommand - change of logic

Versions 0.6.1 and 0.6.2 now throw this error when trying to run fixtures:

Careful, database will be purged. Do you want to continue y/N ?y
  > purging database

In Connection.php line 1853:

  There is no active transaction                                 

This now evaluates to 2 instead of 1 as it used to (ORMPurger constants):

0.6.1 and above
https://github.com/nettrine/fixtures/blob/56accd28d40e6be410d8ebb147d60c45e257eef7/src/Command/LoadDataFixturesCommand.php#L129-L131

0.6.0
https://github.com/nettrine/fixtures/blob/395476f575f48cd37d66f7856b0804b9534455f8/src/Command/LoadDataFixturesCommand.php#L127-L128

Composer info with relevant package:

doctrine/annotations     1.13.2 
doctrine/cache           1.12.1 
doctrine/collections     1.6.8  
doctrine/common          3.2.2  
doctrine/data-fixtures   1.5.2  
doctrine/dbal            2.13.7 
doctrine/deprecations   v0.5.3 
doctrine/event-manager   1.1.1  
doctrine/inflector       2.0.4  
doctrine/instantiator    1.4.0  
doctrine/lexer           1.2.2  
doctrine/orm             2.11.1 
doctrine/persistence     2.3.0  
nettrine/annotations    v0.7.0 
nettrine/cache          v0.3.0 
nettrine/dbal           v0.7.0 
nettrine/fixtures       v0.6.2 
nettrine/orm            v0.8.3 
symfony/console         v5.4.5

I cant find any significant changes in symfony/console 6.x in regards to InputInterface::getOption() method:

So this looks like a bug :)

Fixtures as services

Since the --fixtures option has been removed (#28), would it be possible to load fixtures registered as services?

doctrine/DoctrineFixturesBundle loads fixtures that implement the ORMFixtureInterface:

The common interface in doctrine/data-fixtures is this one:

This could be used to automatically load fixtures from extensions. Just an idea :)

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.