1000 search results

I have already run bin/console doctrine:migrations:migrate and it is all ok. The problem appears when i try to load fixture to recover the fake data. Cheers!
Matias Rouaux
Matias Rouaux
Read Full Comment
Hello as I launch the ./bin/console doctrine:database:create I get this error :"[Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused [Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000] [2002] Connection refused [PDOException] SQLSTATE[HY000] [2002] Connection refused " Can someone…
Marco La Cugurra
Marco La Cugurra
Read Full Comment
Do you need getters and setters for Doctrine/Symfony to work? Or can you just make the Entity properties public? Also... along the same lines... why even use getters and setters? I've read that its so that you can later add further functionality to…
Terry Caliendo
Terry Caliendo
Read Full Comment
…bin/console doctrine:schema:update --dump-sql without getting an error: Compile Error: Cannot use Doctrine\ORM\Mapping as ORM because the name is already in use This is because I am using the following use Doctrine\ORM\Mapping\Column as ORM; use Doctrine\ORM…
Hi everybody, I have a question about Doctrine : if, i have to connect to an existing database, with tables and foreign keys, will Doctrine still be okay to do that ? Thanks
Gremet Laurent
Gremet Laurent
Read Full Comment
Hey Juan Nicolás An entity in Doctrine represents a record in a table for your DB, so that's why you see a lot of DB metadata, such as relationships, field types, etc. Most of the time they have pure data, but you can put…
MolloKhan
MolloKhan
Read Full Comment
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
I've been using Symfony and Doctrine for a few months now, but there's always been a couple of things about Doctrine that made me wonder. In this example you have added the argument EntityManagerInterface $em to the new() method. Could you tell me…
When I run "php bin/console doctrine:fixtures:load", I get: In ReferenceRepository.php line 141: Reference to: (App\DataFixtures\Article_0) does not exist However, doing some tiny debugging, I found out that if I change this line: $comment->setArticle($this->getReference(Article::class…
RoyalShape
RoyalShape
Read Full Comment
Having a small problem with "doctrine:generate:entities" when following along with my own project: http://windupbear.blogspot.com/2016/01/symfony2-and-doctrine-issues.html
Jon Chapman
Jon Chapman
Read Full Comment
I got this on composer install: [Doctrine\Common\Annotations\AnnotationException] You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1. Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception [RuntimeException] An error occurred when executing…
Ryan Pardey
Ryan Pardey
Read Full Comment
It doesn't work. Update to "doctrine/orm": ">2.5.0", "doctrine/dbal": ">=2.5-dev,
Tabla Mihai
Tabla Mihai
Read Full Comment
Duplicate of: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679 Hey Nizar , We're tracking all the Disqus comments, so don't need to duplicate your question multiple times, someone from our team will answer it anyways. Unfortunately, we can't…
Hi Guys, you mention about doctrine migrations being a safer way for renaming the table columns, but how would you make sure that update schema does not break your database? In other words how do you tell update schema not to drop this table because…
Theravadan
Theravadan
Read Full Comment
// play.php // ... $em = $container->get('doctrine') ->getEntityManager() ; The code above from the script is deprecated, use the original code or follow the video: $em = $container->get('doctrine')->getManager();
Duplicate of https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679
Hello again... // src/Yoda/UserBundle/Doctrine/UserListener.php // ... use Yoda\UserBundle\Entity\User; // ... private function handleEvent(User $user) { $plainPassword = $user->getPlainPassword(); $encoder = $this->container->get('security.encoder_factory')->getEncoder($user); $password = $encoder->encodePassword($plainPassword(), $user->getSalt()); $user->setPassword($password); } Remove brackets after…
Duplicate of: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679
I thought there was already a "Doctrine & the Database Tutorial". Is it an update ?
when i write php app/console doctrine:fixtures:load show me Catchable Fatal Error: Argument 1 passed to Userlistener::_construct
squall2501
squall2501
Read Full Comment