Giter Club home page Giter Club logo

fixturesbundle's Introduction

Hello there ๐Ÿ‘‹

My name is David Badura, I'm a freelance software engineer from germany.

My GitHub Statistics


๐Ÿ‘ท Check out what I'm currently working on


๐Ÿ”ญ Latest releases I've contributed to

๐Ÿ“ซ How to reach me

fixturesbundle's People

Contributors

davidbadura avatar marcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fixturesbundle's Issues

Password encoder

Hi David.

I am using FOSUserBundle and this is the fixture:

user:
    properties:
        class: WebFactory\Bundle\UserBundle\Entity\User
    data:
        seller:
            username: seller
            email: seller@localhost
            password: seller
            enabled: true
            roles: [ROLE_SELLER]
        admin:
            username: admin
            email: admin@localhost
            password: admin
            enabled: true
            roles: [ROLE_ADMIN]
        superadmin:
            username: superadmin
            email: superadmin@localhost
            password: superadmin
            enabled: true
            roles: [ROLE_SUPERADMIN]

All its ok, but the passwords are not encoded.

Thanks.

referente of db existent object

i need to reference (@object) of an existen db object. Example:

I have some groups created in the database i want to create some user with fixture but reference on or more groups of the existent in the database

done! but nothing in base

Hi,
I've configured your bundle to load an mysql table exported in yml.
All seems to work cause the command say "done!" after. But nothing appears in base.

I know it certainly lacks of information to know where it could come from but maybe have you an idea?

Thanks

Restricting to tags does not work

I have two fixtures, fixture1.yml, and fixture2.yml:

user:
    tags: [ tag1 ]
    properties:
        class: ME\MainPageBundle\Entity\User
        constructor: [ email ]
        security:
            password: password
            salt: salt
    data:
        testuser1:
            email: [email protected]
            password: test
            loginSystem: 1
user:
    tags: [ tag2 ]
    properties:
        class: ME\MainPageBundle\Entity\User
        constructor: [ email ]
        security:
            password: password
            salt: salt
    data:
        testuser2:
            email: [email protected]
            password: test
            loginSystem: 1

Then I execute:

php app/console davidbadura:fixtures:load -t tag1

> /srv/http/lingo/src/ME/TestingBundle/Resources/fixtures/fixture1.yml
> /srv/http/lingo/src/ME/TestingBundle/Resources/fixtures/fixture2.yml
load fixtures...
> user

[ErrorException]                                                                                
Notice: Array to string conversion in /srv/http/lingo/vendor/davidbadura/fixtures-bundle/David  
Badura/FixturesBundle/FixtureConverter/DefaultConverter.php line 33                             

The reason this happens (if I'm correct), is because both files get read, and because of the merging process, the classname becomes an array with two values, each containing the 'ME\MainPageBundle\Entity\User' namespace.

Undefined index: fixtures

Notice: Undefined index: fixtures in vendor/davidbadura/fixtures-bundle/DavidBadura/FixturesBundle/FixtureManager.php line 97

Exclude tags

Its possible exclude tags?

app/console davidbadura:fixtures:load -e tag1 -e tag2 -t tag3

Fatal error on __construct call

Using Symfony 3.2.1, fixtures loading with php bin/console davidbadura:fixtures:load -t dev leads to the following CLI Fatal error:

Catchable Fatal Error: Argument 1 passed to DavidBadura\FixturesBundle\EventListener\ValidationListener::__construct() must be an instance of Symfony\Component\Validator\ValidatorInterface, instance of Symfony\Component\Validator\Validator\RecursiveValidator given, called in /srv/monortho/var/cache/dev/appDevDebugProjectContainer.php on line 852 and defined

Is there any chance an update may be released ? Maybe someone can point out some similar bundle alternatives (meaning Faker support with yaml fixtures files) ?
Thank you.

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.