Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

doctrine/doctrine-fixtures-bundle 3.5.1

Symfony DoctrineFixturesBundle
Package summary
Share
0
issues
1
license
45
MIT
Package created
17 Dec 2011
Version published
19 Nov 2023
Maintainers
1
Total deps
45
Direct deps
10
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
45 Packages, Including:
doctrine/cache@2.2.0
doctrine/collections@2.2.2
doctrine/data-fixtures@1.7.0
doctrine/dbal@4.0.2
doctrine/deprecations@1.1.3
doctrine/doctrine-bundle@2.12.0
doctrine/doctrine-fixtures-bundle@3.5.1
doctrine/event-manager@2.0.0
doctrine/inflector@2.0.10
doctrine/instantiator@2.0.0
doctrine/lexer@3.0.1
doctrine/orm@3.1.3
doctrine/persistence@3.3.2
doctrine/sql-formatter@1.4.0
psr/cache@3.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/cache@v7.0.7
symfony/cache-contracts@v3.5.0
symfony/config@v7.0.7
symfony/console@v7.0.7
symfony/dependency-injection@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/doctrine-bridge@v7.0.7
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/finder@v7.0.7
symfony/framework-bundle@v7.0.7
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v7.0.7
symfony/routing@v7.0.7
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
symfony/var-dumper@v7.0.7
symfony/var-exporter@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

10
All Dependencies CSV
β“˜ This is a list of doctrine/doctrine-fixtures-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/data-fixtures1.7.027.11 kBMIT
prod dev
doctrine/doctrine-bundle2.12.0-MIT
prod
doctrine/orm3.1.3-MIT
prod dev
doctrine/persistence3.3.2-MIT
prod dev
symfony/configv7.0.7-MIT
prod dev
symfony/consolev7.0.7-MIT
prod dev
symfony/dependency-injectionv7.0.7-MIT
prod dev
symfony/deprecation-contractsv3.5.0-MIT
prod dev
symfony/doctrine-bridgev7.0.7-MIT
prod
symfony/http-kernelv7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does doctrine/doctrine-fixtures-bundle do?

The doctrine/doctrine-fixtures-bundle is a Symfony bundle that facilitates the integration of the Doctrine2 Data Fixtures library into your Symfony applications. It serves as an efficient tool to load data fixtures programmatically into the Doctrine ORM (Object-Relational Mapping) or ODM (Object Document Mapping), making it easier to manage and play around with your application's data for testing or other purposes.

How do you use doctrine/doctrine-fixtures-bundle?

To use the doctrine/doctrine-fixtures-bundle, you need to install the package first via Composer, given that you already have Composer installed and updated. You can do this by running the command below in your terminal:

composer require --dev doctrine/doctrine-fixtures-bundle

Once the bundle is installed, you may need to manually enable it in your kernel, especially if you're using a Symfony version before 3.4. Afterward, you can create fixture classes wherein you define what sort of data you want to generate. Here is an example of what a fixture class might look like:

namespace AppBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Persistence\ObjectManager;
use AppBundle\Entity\Product;

class LoadProductData implements FixtureInterface
{
    public function load(ObjectManager $manager)
    {
        $product = new Product();
        $product->setName('A new product');
        $product->setPrice('19.99');
        $product->setDescription('Lorem ipsum dolor sit amet');

        $manager->persist($product);
        $manager->flush();
    }
}

And here is how you'd use the console command to load your fixtures:

php bin/console doctrine:fixtures:load

Where are the doctrine/doctrine-fixtures-bundle docs?

The complete documentation for the doctrine/doctrine-fixtures-bundle is made available online. You can find it on the Symfony website at this address: http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html. This documentation provides a comprehensive guide on how you can make the most of this bundle, including detailed instructions and usage examples.