2725 search results for Doctrine

... when I create a new object and write it to the database using Doctrine Eventmanager. Then the validator is not called. Is that the way it is supposed to be? Or do I have something configured wrong? I use Symfony 5.2. and PHP 8.0.3
Christian H.
Christian H.
Read Full Comment
Thanks for the answer, i wonder, would it be possible, and "good practice" to create one Doctrine Criteria and share it between the Voter and the Extension? Or is there a other way to "centralize" the code for my access ...
... () ->getConnection('gso'); $ngso = $conn->fetchArray("SELECT COUNT(*) from gso.persons");` But how can I get a `Repository` that uses this connection? The Doctrine documentation says, that `EntityManager::create()` accepts a ...
Hey @Farry7! Hmmm. I’m not familiar with this error! Is this from a custom project? So, looking into this - https://stackoverflow.com/questions/13708761/doctrine-orm-ormexception-this-behaviour-is-currently-not ...
weaverryan
weaverryan
Read Full Comment
Hey Farry, 1) Basically this topic is related to Doctrine and not to Symfony, so you don't have to change anything if you're using Symfony5 for this project 2) Yes, you can do that but it depends on how you want to ...
MolloKhan
MolloKhan
Read Full Comment
Hey NicolasZ, Yes, the library you're referencing to ( https://github.com/doctrine-extensions/DoctrineExtensions ) is actually caused that issue with their major release :) In the screencast, we use the bundle that is ...
... you explained this at the last episode of Symfony 5 > Doctrine, Symfony & the Database, by tricking the DateTime field. I am curious wether there are other ways.
... too in the Doctrine and Symfony docs, but actually, in the Symfony docs it says that now the Inflector Component is deprecated (https://symfony.com/doc/current/components/inflector.html). Maybe there's a way to configure through yaml, or maybe through decoration?
Hey Albert G.! Yes, I know this issue - it's super annoying! There is a thread on this page - https://symfonycasts.com/screencast/symfony-doctrine/console#comment-5045615493 - where we talk about ways to debug this. I ...
weaverryan
weaverryan
Read Full Comment
... Hey odds! Don't give up! :) These are both normal errors - and we talk about them later in the tutorial - https://symfonycasts.com/screencast/symfony5-upgrade/doctrine-bundle-updates The tl;dr is that a few type ...
weaverryan
weaverryan
Read Full Comment
Hi, I just ran thru the setup and all went well until I attempted to connect to the db via the php bin/console doctrine:database:create command. I get this error: [Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000 ...
... more about how to do so https://symfonycasts.com/screencast/doctrine-relations/many-to-many-joins If you still have questions, please let us know. Cheers!
MolloKhan
MolloKhan
Read Full Comment
... own entities. But I cannot understand how to configure migrations to execute different migrations for each database. I have read symfony docs https://symfony.com/doc/current/doctrine/multiple_entity_managers.html but still have no idea
Hello, I am experimenting with the code and have made my own Form, Repository and Controller. For adding new articles, everything works fine. But when I try to edit an article, I am getting 'Entity of type "Doctrine\ORM ...
... '] ); ` Unfortunately, with the last version of Doctrine, I don't have createListQueryBuilder method. Could you explain me how to replace it? I didn't understand so well. Thanks for your help
Gaetano S.
Gaetano S.
Read Full Comment
... the course code from this page you can see what to do, or watch the "Mastering Doctrine Relations" course to dive deep into relationships If you still have doubts, pleaes let me know.
MolloKhan
MolloKhan
Read Full Comment
... GenusNote document should be persisted (key and value structure). Would you do that in a doctrine listener such as pre-persist? and upon fetching the relation, at what stage would you convert the document to an object?
Ziad Jammal
Ziad Jammal
Read Full Comment
... A custom Filter is AndWhere from queryBuilder. That makes sense we filter a resource and not build a complete query ... https://api-platform.com/docs/core/filters/#creating-custom-doctrine-orm-filters
Benjamin K.
Benjamin K.
Read Full Comment
Hello Ryan, first: Thank you for you amazing work! Many sources say that you should not directly link entities and forms ( https://stackoverflow.com/a/43962930 ). This includes ocramius as a doctrine developer. But ...
... ", "sensio_framework_extra", "doctrine", "doctrine_migrations", "security", "web_profiler", "monolog", "debug", "maker", "webpack_encore", "knp_time"" in /symfony_project/config /packages/stof_doctrine_extensions.yaml (which is being imported from "/symfony_project/src/Kernel.php"). ` ...
Mamadou iliassa S.
Mamadou iliassa S.
Read Full Comment