2726 search results for Doctrine

... /pagination/#controlling-the-behavior-of-the-doctrine-orm-paginator I believe you'll need to extend or create a custom paginator Cheers!
MolloKhan
MolloKhan
Read Full Comment
... Attempted to call an undefined method named "registerLoader" of class "Doctrine\Common\Annotations\AnnotationRegistry". could you help me THANKS
Note that getParameter returns [a quoted string](https://github.com/doctrine/orm/issues/10258)! A workarround regarding nullable values would be something like: ``` $expression = 0 == substr($this->getParameter ...
... well before ading the Doctrine Listener. Now my user is auto added to my entites but my constraint is not triggered.
... Cool! Glad it's working! I think you had the right idea - just maybe not in the right order. I think you needed to: A) Update dbal in composer.json B) Run `composer update doctrine/dbal` so that it *only* updates that library (and not everything else, including Symfony). Cheers!
weaverryan
weaverryan
Read Full Comment
... some more info and the solution here - please let me know if it helps! https://symfonycasts.com/screencast/symfony-doctrine/docker-compose#comment-28388 Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Christina, You can access that information via Doctrine relationships. For example, if User has a relationship with Activity, you can access the Activity fields by doing something like this ```php public ...
MolloKhan
MolloKhan
Read Full Comment
Nice work jlchafardet I think what happens in a lot of cases with Doctrine is that: A) it requires more typing to set something up and B) The documentation often isn't clear (so that it's difficult to know what to ...
weaverryan
weaverryan
Read Full Comment
Hey Thephilosoft, Yes, you're totally correct, the price should be changed to make the 2nd query, otherwise the Doctrine is smart enough to ignore the last `flush()` call. Thank you for reporting it, I changed the price in the last `setPrice()` call to avoid editing the explanation message. Cheers! ...
... ▼ #message: "The presented password is invalid." #code: 0 #file: "/home/amine/Projets/Symfony/Symfony6/symfony-doctrine-formation/vendor/symfony/security-http/EventListener/CheckCredentialsListener.php" #line: 74 -token: null` Best, Amine
... ok I've been playing with the gedmo/doctrine-extensions, seems i've gotten most of it to work, except translatable, or at least im not seeing it create any tables for the translations, loggable, softdeletable ...
jlchafardet
jlchafardet
Read Full Comment
Hey John! I just checked and it looks like you figured it out yourself - it's always something small like that. The Doctrine configuration is one of the few areas in Symfony where configuration is sort of ...
weaverryan
weaverryan
Read Full Comment
Hey Rob! Yes, you're absolutely right! It's not anything related to Symfony 2.3, I just missed adding the `use Doctrine\ORM\EntityManager` at the top of that class. I've updated that chapter - so you can take a look at the corrected code now. Thanks for pointing that out! ...
weaverryan
weaverryan
Read Full Comment
Thanks for the tutorial. I found that the CurrentSiteListener.php was missing the Doctrine class. It was looking for it in the set NameSpace. I'm not a Symfony Exert by any means. Am I missing something or is this something related to version 2.3? ...
completely new with composer, when running install I get this, while in the process of cloning doctrine/common (2.3.x-dev bb0aebb) : [Symfony\Component\Process\Exception\RuntimeException] The process timed out. any ...
Hi, apparently my mySql is a MariaDB, for server version phpMyAdmin says 10.3.35-MariaDB-log - FreeBSD ports so should my doctrine.yaml then look like this? ``` doctrine: dbal: server_version: 10.3.35 ...
MattWelander
MattWelander
Read Full Comment
... fundamentals(5) or symfony doctrine(5) you need to change the nav section at the start of the body in base.html.twig to include navbar-expand-lg. ``` ```
Hey ahmedbhs I'm glad to hear you are liking our content. About your question, the `prePersist` event is only fired when a new entity is saved in the database for the first time. And, the `preUpdate` event is fired every time an entity is updated in the database, that's just how Doctrine events works. Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Grenouille, It seems like a duplicate, I already answered this question in https://symfonycasts.com/screencast/symfony4-doctrine/create-entity#comment-5907570091 . Please, do not create duplicated comments, we track every comment and every comment will be replied by our support team as soon as we can. Cheers! ...
... //symfonycasts.com/screencast/symfony4-doctrine/fixtures#codeblock-0372f09dc8 so this code will execute function with our `$entity` and `$i` arguments Cheers!