2709 search results for Doctrine

Hello, not sure if this belongs here but I have these 2 deprecations Since symfony/doctrine-bridge 6.3: Registering "Gedmo\Loggable\LoggableListener" as a Doctrine subscriber is deprecated. Register it as a ...
... "AppBundle\Service\Settings::__construct()" to one of its parents: interface "Doctrine\ORM\EntityManagerInterface", or interface "Doctrine\Common\Persistence\ObjectManager"." I don't understand, why I have to typehint the EntityManagerInterface and not the EntityManager?
Trafficmanagertech
Trafficmanagertech
Read Full Comment
Hello, I have surrendered to the Doctrine powers because of this tutorial. One question, I need to have a default date time value to catch the moment when the user fill a form. I made a construct function in the Entity ...
Hey, I am trying to set up a project for this course. That is what I see, after using db create command: [Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver ...
Jan Zioło
Jan Zioło
Read Full Comment
... your next step - run "composer require doctrine/doctrine-migrations-bundle" and now Composer should be able to download this bundle and you won't see this error anymore (in theory). Let us know if something go wrong. Cheers!
... > composer require doctrine/doctrine-migrations-bundle This completly blow up my php memory limit. So on MAC you'll need to : - find out where is your php.ini for the php CLI > php --ini - Then edit the file ( in ...
Hi! I have a question... how can i show a list of images that I have hosted in web/images using twig?? You explain how to get info from doctrine and bring it to do something like that: {% for element in list %} The ...
Matias Rouaux
Matias Rouaux
Read Full Comment
Hey there, so I've got a problem, when I run: ./bin/console doctrine:database:create I get: [Doctrine\DBAL\Exception\DriverException] An exception occured in driver: could not find driver ...
Ali Niaki
Ali Niaki
Read Full Comment
Hey Céline Ollagnier Your file look's good to me, so there is not the problem. I would suggest you to first try running: $ composer update doctrine/doctrine-cache-bundle --with-dependencies Maybe there is a bug in ...
MolloKhan
MolloKhan
Read Full Comment
... But my base is empty except this table. As Ryan said I didn't put a version number and let the installation do its job. My composer.json says... "doctrine/doctrine-migrations-bundle": "^1.2" and for symfony "symfony/symfony": "3.2.*" ...
Céline Ollagnier
Céline Ollagnier
Read Full Comment
... urlencode some of the special characters in your password. Check out the latest commit to that class, which add support for this: https://github.com/doctrine/dbal/commit/2dc419625299be3b91ced60ca4658fb95abb3722, and the PR behind it: https://github.com/doctrine/dbal/pull/2504 Cheers! ...
weaverryan
weaverryan
Read Full Comment
... here:http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-associations.html#persistence-by-reachability-cascade-persist Or watch our tutorial about doctrine collections (which I think is great): https://knpuniversity.com/screencast/collections Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hi Ryan, thanks a lot for making this clear. Additional I found out why symfony/doctrine was checking the XML Files instead of my Entites ... the XML-Files was created caused by Reverse Engineering of existent database ...
Thomas L.
Thomas L.
Read Full Comment
Yo Ryan! Hmm, I think you're absolutely right that you need version 1.2.5 at least of doctrine/annotations to avoid this problem. But, if you download the course code, the project ships with doctrine/annotations 1.2.7 ...
weaverryan
weaverryan
Read Full Comment
... from the config.yml. See the example below: [app/config/config.yml] ``` doctrine: orm: filters: fortune_cookie_discontinued: class: AppBundle\Doctrine\DiscontinuedFilter ...
Stéphane Ratelet
Stéphane Ratelet
Read Full Comment
... Fundamentals: Bundles, Configuration & Environments 3. Symfony: Doctrine & the Database 4. Mastering Doctrine Relationships in Symfony 5. Symfony: Level up with Services and the Container 6. Symfony Forms: Build, Render & Conquer! 7. Symfony Security: Beautiful Authentication, Powerful Authorization 1.
Boran Alsaleh
Boran Alsaleh
Read Full Comment
Hey Adam, I suppose you can get container with "$em = self::$container->get('doctrine')->getManager();" as in example here: https://knpuniversity.com/screencast/behat/clear-data-symfony-extension#clearing-the-database ...
Yo Pete! Ah, just saw this after my reply (https://knpuniversity.com/screencast/symfony2-ep1/doctrine#comment-2993639740). If you tried SQLite and still got connection refused, then I think there's still something not ...
weaverryan
weaverryan
Read Full Comment
... LoadFixtures.php file : ``` namespace AppBundle\DataFixtures\ORM; use AppBundle\Entity\Genus; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Nelmio\Alice\Fixtures ...
... ', 'defaultTableOptions' => array('collate' => 'utf8mb4_unicode_ci'), 'dbname' => 'root', 'sslmode' => 'disable', 'charset' => 'utf8mb4'), 'root', 'password', array()) in D:\code-symfony6-upgrade\start\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php (line 411)" ``` ...
Slawomir-B
Slawomir-B
Read Full Comment