use Doctrine\Common\DataFixtures\Loader; use Doctrine\Common\DataFixtures\Executor\ORMExecutor; use Doctrine\Common\DataFixtures\Purger\ORMPurger; ... // Create a loader and add the fixture file $loader = new Loader(); $loader->loadFromDirectory(__DIR__.'/fixtures'); // Create an executor to save the data to the database $entityManager = getEntityManager(); $purger = new ORMPurger($entityManager); $executor = new ORMExecutor($entityManager, $purger); $executor->execute($loader->getFixtures());In this example, we create a new loader and add the fixture file to it. We then create an executor that will save the data to the database using the Doctrine ORM. Finally, we execute the loader and save the data to the database. Overall, Doctrine is a powerful and flexible package library for PHP that provides many features for working with databases. Its loadData method is just one example of how it makes working with databases easier and more efficient.