2725 search results for Doctrine

... - yesterday - and will start working on the Doctrine (database) tutorial next. If you can't wait (I totally get it!) our Symfony 4 Doctrine tutorial will still be *very* relevant - not a lot of critical things have changed - https://symfonycasts.com/screencast/symfony4-doctrine Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Rafael, Hm, interesting... Could you do "rm -rf vendor/" and then "composer install"? Does it helps? If not, probably try to upgrade the library with "composer update doctrine/dbal". If you still have this error ...
Validating how Values Change

... with validation... but with the help of a special class from Doctrine called the UnitOfWork. Alrighty, let's whip up a test to shine a light on this pesky bug. Inside tests/Functional/, open UserResourceTest. Copy the ...

8:30
Recipe Upgrades with recipes:update

... composer recipes:update We'll work on the rest from top to bottom. Next is doctrine/doctrine-bundle. This is a cool update. Once again, I'll clear the screen and run ...

6:13
Rendering Answer Data Saving Votes

... probably need a few tweaks: templates/question/show.html.twig. If you scroll down a bit - here it is - we loop over the answers variable. That will still work: the Doctrine collection is something that we can loop over. But ...

6:02
Collection Criteria for Custom Relation Queries

... controller and do a custom query for the answers there? Fortunately, no! These Doctrine Collection objects have a few tricks up their sleeves, including a special "criteria" system for just this situation. It allows us ...

6:33
Data Fixtures

... fixtures --dev This is another flex alias: orm-fixtures installs doctrine/doctrine-fixtures-bundle When this finishes... it installed a recipe! I committed all of my changes before recording, so I'll run ...

5:18
Profiling Command Line scripts

... deep Doctrine stuff. Let's check out the command and look for the EntityManager::flush() call: Yep! I flush once each time at the end of the loop, which updates that database row. If you're familiar with Doctrine, you ...

6:33
Creating Embedded Objects

... and it is setting it onto the cheeseListings property of the new User. But nothing ever calls $entityManager->persist() on that new CheeseListing, which is why Doctrine isn't sure what to do when trying to save the User ...

7:06
Owning Vs Inverse Relations

We need to talk about a very, very important and, honestly, super-confusing part of Doctrine relations! Listen closely: this is the ugliest thing we need to talk about. So, let's get through it, put a big beautiful ...

7:26
Fetching Relations

... article_id, and only think about the properties on your entity classes. That's why we use 'article' => $article. Of course, behind the scenes, Doctrine will make a query where article_id = the id from this Article. But, in ...

6:02
Clearing the Database

... that, go back to config_test.yml. In a Symfony 4 Flex application, you should create a config/packages/test/doctrine.yaml file since this will contain Doctrine configuration that you only want to use in the test ...

6:19
Hey Cesar, With Doctrine you get both ORM and DBAL. We explain ORM in this course, it's higher level and more fun. However, ORM is based on the more lower level like DBAL. Actually, you can think of Doctrine DBAL as ...
Ah hah! I got it, finally! The tutorial uses doctrine/dbal 2.5.4, and there is a behavior change in doctrine/dbal 2.5.5! Here is the issue about it: https://github.com/doctrine/dbal/issues/2501 So, it's quite an ...
weaverryan
weaverryan
Read Full Comment
... /code-symfony5-doctrine/code-symfony5-doctrine/start/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php on line 3 Fatal error: Cannot declare interface Stringable, because the name is already in use in /Users ...
Hi, i saw the same problem like Aaroon kincer the problem is ``` composer require stof/doctrine-extensions-bundle ``` Using version ^1.6 for stof/doctrine-extensions-bundle ./composer.json has been updated Running ...
... \FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in C:\\var ...
Hi Andres M! Yes, you're right! So, there are 3 different types of caches in Doctrine: metadata, query and result caches. The first 2 - metadata & cache - make complete sense to have enabled all the time in production ...
weaverryan
weaverryan
Read Full Comment
... Symfony\Comp !! onent\Form\FormTypeGuesserInterface not found in /Users/john_christensen/Do !! wnloads/code-symfony-doctrine/start/vendor/symfony/doctrine-bridge/Form/Doc !! trineOrmTypeGuesser.php:25 ...
Yep, Victor is right! In fact, this API endpoint will be updated to handle *real* data in chapter 13 of the Doctrine tutorial :) https://knpuniversity.com/screencast/symfony-doctrine Cheers! ...
weaverryan
weaverryan
Read Full Comment