2725 search results for Doctrine

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 ...
... security-template-and-doctrine-attributes) for switching from `sensio/framework-extra-bundle` to native Symfony attributes. Our Doctrine & Symfony 7 course is coming out soon and it will use the native attributes!
... ', '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
Hi Ryan, I am trying to install the require doctrine/doctrine-migrations-bundle. However I keep getting this back : [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException ...
Hey Cameron, This is actually from doctrine/orm package. This might be an indirect deprecation for other packages that uses doctrine/orm in their dependecies including Foundry like you said. You can just ignore it ...
Hi @Tim-K, Good question, I guess you are using `phpstan/phpstan-doctrine` extension, if so then you can try disable this check with ``` parameters: doctrine: allowNullablePropertyForRequiredField: true ...
Hey Elijah, We talked about running Symfony projects with Docker in e.g. this course: https://symfonycasts.com/screencast/symfony-doctrine - you can download the course code and pull some Docker-related files from ...
... use the corresponding DB. I'm not sure if there are bundles that can help you with it Oh, also, you'll have to set up Doctrine to work with multiple databases https://symfony.com/doc/current/doctrine/multiple_entity_managers.html I hope it helps. Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hi I really like the automatic CreatedAt and UpdatedAt feature. I am wondering how do I change the column name that is created to store these, I'm thinking I would need to edit the file below and add the Doctrine ...
Markchicobaby
Markchicobaby
Read Full Comment
... Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Dotenv\Dotenv::bootEnv() in /somedir/Symfony/code-symfony-doctrine/start/public/index.php:10 Stack trace: #0 {main} thrown in /somedir/Symfony/code-symfony-doctrine/start/public/index.php on line 10 What can i do?
Marnix K.
Marnix K.
Read Full Comment
... /symfony/issues/41796 - and it looks like your issue might be fixed with DoctrineBundle 2.43. or higher. Try: `composer update doctrine/doctrine-bundle` and let me know if it helped :). Cheers!
weaverryan
weaverryan
Read Full Comment
Excellent question! They do not. This is controlled in your `config/packages/doctrine.yaml` file: https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/2.4/config/packages/doctrine.yaml#L13-L16 You ...
weaverryan
weaverryan
Read Full Comment
Hi, I´ve been trying to use the new Symfony UID, but having trouble on the Doctrine Type as the doctrine migration tries to create an BINARY(16) column instead of CHAR(36) as on the video. I´m using MySQL. Is there a way to update symfony uuid type to use char(36) or it is better to just use the Ramsey as in the course. ...
Erico Vasconcelos
Erico Vasconcelos
Read Full Comment
Hey Aaron, Thank you for your interest in SymfonyCasts tutorials! We're releasing a course called "Mastering Doctrine Relations" - it's in the middle right now and will be releasing about 3 week. After that, the next ...
Hey Mepcuk! Ha, fair enough :). The goal of the previous chapter is probably "Having fake database data is great, and Foundry make it easy, and here is how you use Foundry with Doctrine relations". This chapter really ...
weaverryan
weaverryan
Read Full Comment