2708 search results for Doctrine

Controlling the Database

... = new User(). Then set the username and the "plainPassword": I have a Doctrine listener already setup that will encode the password automatically. Which is good: it's well-known that raptors can smell un-encoded ...

4:24
Inserting into a ManyToMany

The big question is: who is the best superhero of all time? Um, I mean, how can we insert things into this join table? How can we join a Genus and a User together? Doctrine makes this easy... and yet... at the same time ...

5:27
Fatal error: Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::registerLoader() must be an instance of Doctrine\Common\Annotations\void, none returned in /home/ywoume/www/upgrade/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117 i use php7.1 ...
Rajaona F.
Rajaona F.
Read Full Comment
Hey Pawel! That means you still need to install and activate doctrine migrations bundle, it doesn't come by default just run: ``` composer require doctrine/doctrine-migrations-bundle ``` and then open up your ...
MolloKhan
MolloKhan
Read Full Comment
Using course zip file for project. Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle ...
Hi! As of this moment, Symfony 3.3.10 is not supported any more by the latest version of doctrine/doctrine-fixtures-bundle. The version 3.0.4 does support Symfony 3.3.10. So to get this to work, `composer require --dev doctrine/doctrine-fixtures-bundle:3.0.4` should be the full command. ...
Bojan Đ.
Bojan Đ.
Read Full Comment
Hi again, In your chapter "Fixtures and External Libraries", apparently, now this command: php composer.phar update doctrine-fixtures-bundle We have this message: Package "doctrine-fixtures-bundle" listed for update ...
Mathias Strasser
Mathias Strasser
Read Full Comment
Hi, when I try run this test "./vendor/bin/phpunit tests/AppBundle/Controller/DefaultControllerTest.php", it fails with the following error: "BadMethodCallException: doctrine/doctrine-fixtures-bundle must be installed ...
... wonder if - somehow (though this shouldn't be allowed) you have versions of doctrine/migrations and doctrine/doctrine-migrations-bundle that are conflicting with each other. Try this: run `composer show`. What versions do ...
weaverryan
weaverryan
Read Full Comment
Maybe more useful informations: composer req orm-fixtures Using version ^3.2 for doctrine/doctrine-fixtures-bundle ./composer.json has been updated Loading composer repositories with package information Updating ...
... /" } }, "require": { "php": ">=5.5.9", "symfony/symfony": "3.1.*", "doctrine/orm": "^2.5", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2 ...
Andy @ melt
Andy @ melt
Read Full Comment
Hey Richie, Well, Doctrine is already an abstraction layer for low level database drivers: MySQL, PgSQL, Sqlite, etc. - see the http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference ...
When trying to install doctrine-fixtures-bundle I get an error. I'm with Symfony version 3.1.10 and I need to install it adding "^2.0.0" like this: composer require --dev "doctrine/doctrine-fixtures-bundle:^2.0.0" Hope that helps someone! Cheers! ...
Lluís Puig Ferrer
Lluís Puig Ferrer
Read Full Comment
... Hmm, ok, let's try this: First, remove entirely your vendor's directory and the doctrine-migrations-bundle entry in your composer.json Then, run `composer install` -> `composer update` -> `composer require doctrine/doctrine-migrations-bundle` I believe it will do the trick ;)
MolloKhan
MolloKhan
Read Full Comment
More info: In my LoadUser.php When I installed composer with --no-dev the namespaces next are wrong, because not exits Doctrine\Common\DataFixtures. use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; ...
JuanLuisGarciaBorrego
JuanLuisGarciaBorrego
Read Full Comment
... I don't use the Symfony binary (I use DDEV), but I think it should read "symfony console doctrine:[...]" instead of "symfony binary doctrine:[...]" in the script of the 'Creating the database' section of the two console instructions for Doctrine.
In case anyone didn't notice, and you're on Symfony 2.2.*, you need to add "doctrine/doctrine-fixtures-bundle": "dev-master" to your composer.json and new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle() to your bundles to use the fixtures. ...
Hello again, installing doctrine-fixture-bundle v2.4 with the cmd: ` composer require --dev doctrine/doctrine-fixtures-bundle 2.4 ` worked for me. But I am still interested in how I can get the more recent version of orm-fixtures-bundle ...
AndTheGodsMadeLove
AndTheGodsMadeLove
Read Full Comment
// ... lines 1 - 4
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryCollectionExtensionInterface;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use Doctrine\ORM\QueryBuilder;
// ... line 8
class CheeseListingIsPublishedExtension implements QueryCollectionExtensionInterface
{
public function applyToCollection(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null)
{
}
}
See Code Block in Script
And we are back again to the same previous error "Given object is not an instance of the class this property was declared in 500 Internal Server Error - ReflectionException" in vendor\doctrine\orm\lib\Doctrine\ORM ...