2725 search results for Doctrine

Hey Houssem! Are you referring to database transactions? If so, excellent question! First, Doctrine automatically wraps its operations in a transaction. You can actually see this in one of our videos - https ...
weaverryan
weaverryan
Read Full Comment
Hey Mastou, Why persist($comment)? Because we just created that Comment object. So, basically, if you create a new entity, to say Doctrine to store that object into DB you need to call persist on that object first ...
Hey David B.! I couldn't agree more - I've always thought Doctrine fixtures were clunky - and it's been on my list for a long time to improve it. But, that's *also* why we added our own mini-fixture system on top of ...
weaverryan
weaverryan
Read Full Comment
... it more complex in every new chapter. And about Doctrine Relations: https://symfonycasts.com/screencast/doctrine-relations where In particular to your question, you may want to take a look at: - https ...
... not mapped to your entity and that you work with via doctrine DBAL - Doctrine migration might think that those fields should be removed, so better do not mix data in the same table. About foreign key constraints - yes ...
Hello, When I try running php bin/console doctrine:migrations:migrate using the code on the /start folder provided here I get the following error: `PHP Fatal error: Class 'Doctrine\DBAL\Migrations\AbstractMigration ...
... ": "project", "license": "proprietary", "prefer-stable": true, "require": { "php": ">=8.1", "ext-ctype": "*", "ext-iconv": "*", "babdev/pagerfanta-bundle": "^4.2", "doctrine/doctrine-bundle": "^2.10 ...
... after requesting another page as the kernel is being shut down every time and the entity managers are clear()ed... This is since the following commit in Doctrine Bundle. https://github.com/doctrine/DoctrineBundle/pull ...
Anthony R.
Anthony R.
Read Full Comment
Hey connectscape! Actually, you're 100% correct! And the tutorial *is* built so you can follow along. Well, at least it *was* :). Due to a change in Doctrine, you are forced to create your database *earlier* than you ...
weaverryan
weaverryan
Read Full Comment
... ``` #\app\config\config.yml ``` yml doctrine: dbal: driver: pdo_mysql host: 127.0.0.1 port: 3306 dbname: aqua_note user: root password ...
Hey |mention:85663| I recommend you use Rector to upgrade your code, it may save you a bunch of time. About the Doctrine deprecation, you need to migrate your YAML config into something else, I recommend PHP ...
MolloKhan
MolloKhan
Read Full Comment
Hey @Peter-K! I don't have answer, but it sounds like Doctrine Bridge made some changes. The Gedmo docs have changed I think, to reflect this: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/doc ...
weaverryan
weaverryan
Read Full Comment
Hey @Sjoerd-N! Hmm, yea, that makes sense. Doctrine ORM 3 just came out, and one of the biggest changes is that the mapping changed from an array to `FieldMapping`. That's a nice change, but a *bunch* of libraries on ...
weaverryan
weaverryan
Read Full Comment
Hey, What about LifecycleEventArgs class - it depends on do you use Doctrine ORM or no. Most probably you do in Symfony projects, so choose the second one which "Doctrine\ORM\LifecycleEventArgs", otherwise - choose the ...
Hi Vladimir, Thanks for checking! So if I understand correctly: At first the `|length` in Twig made it count all the records within a category, because Doctrine detected that the relation isn't hydrated and it ...
Hey Rene, From the log, looks like your PHP version that is 8.1.2 does not fit requirements for those bundles. "stof/doctrine-extensions-bundle" of v1.5.0 does not work on PHP 8 yet. But for the next available version ...
Hey Mepcuk! Ah, I'm so happy you're liking it! ❤️ > Q: Where is link to Doctrine part 1? Or it is mean Symfony 4 course? Yup, it's the Symfony tutorial with Doctrine - so, this one: https://symfonycasts.com ...
weaverryan
weaverryan
Read Full Comment
Hey Syed, Fairly speaking, I'm not aware how Laravel migrations work, but if they work like you described - you're right, they work different from Doctrine migrations. And yes, you're right, Doctrine migrations create ...
... project! Did you somehow uninstall the doctrine-extensions library (this class comes from https://github.com/doctrine-extensions/DoctrineExtensions, which is a dependency of the stof doctrine extensions bundle)? Cheers!
weaverryan
weaverryan
Read Full Comment
... issue on a different tutorial), I ended up with a bad combination of SensioFramworkExtraBundle and Doctrine. I'm going to get this fixed up ASAP. In the mean time, here is the fix: ``` compose up sensio/framework-extra ...
weaverryan
weaverryan
Read Full Comment