2725 search results for Doctrine

How to make recursive function in symfony 3 with doctrine? I have script PHP native like below: mysql_connect("localhost","root","blablabla"); mysql_select_db("demo"); function html_menu(&$strmenu ...
Henri Tompodung
Henri Tompodung
Read Full Comment
Hey @Oleguer-C! Hmmm. I don't have any experience with Doctrine inheritance and the serializer. To debug this, I'd first try to get a stacktrace of where this error comes from. Then maybe we can work backwards from ...
weaverryan
weaverryan
Read Full Comment
... `sync-metadata-storage` for confusing reasons that aren't important). I believe this is caused when you get a new version of doctrine migrations and they've changed how the store the migrations in the database. Running this command will "alter" the table to match whatever the new structure is. Cheers!
weaverryan
weaverryan
Read Full Comment
... when I try to ls into it, whereas the var/cache/dev/doctrine./cache/file_system/60 does exist. Any suggestion as to why this could be? Thanks in advance!
Nathaniel Kolenberg
Nathaniel Kolenberg
Read Full Comment
... Honestly I'm not sure about your way, I think it can be done with less code and without several `foreach` blocks, as I understand the collection is some sort of One-To-Many relation, so you can just make a doctrine ...
... - https://symfonycasts.com/screencast/symfony-doctrine/forever-scroll?playAt=254 - but somehow I forgot to put that note in the text! I'll add that now :). Cheers!
weaverryan
weaverryan
Read Full Comment
The article is quite interesting. But try https://api-platform.com/docs/core/serialization/#embedding-relations . Probably you will achieve the same. If not, you would probably have to look at Doctrine and the Eager ...
Hey @t5810! Ah, sorry for the trouble and the my glacially slow reply! Ok, so I see the issue - there was a bug between older version of Symfony and doctrine/annotations v2 (which is required by the `sensio/framework ...
weaverryan
weaverryan
Read Full Comment
... same aspect searched here https://github.com/api-platform/core/issues/4672. I've tried to create an extension for the paginator but the class https://github.com/api-platform/core/blob/main/src/Doctrine/Orm/Extension/PaginationExtension.php is final. Have any ideas plz ?
Hey BYT, I don't think so... unless you will find a bundle or a library on GitHub that may help you with this. Doctrine only allows you to import mapping information from an existing database - for this you can ...
When running my tests, with a blank SQLite DB I get a Doctrine\DBAL\Exception\TableNotFoundException because, of course, the schema hasn't been yet created. I do create it locally and it solves the problem but it will ...
Hey Peter L.! You're absolutely correct! The reason I typically use an extra library on top of that is because the Doctrine paginator doesn't make it easy to determine what the "next" page is (or if one is needed) or ...
weaverryan
weaverryan
Read Full Comment
... [ 'tags' => TagFactory::randomRange(0, 5), ]; }); ` i got error from doctrine orm : Cannot set attribute "tags" for object "App\Entity\Question" (not public and no setter). Could not determine ...
Tien dat L.
Tien dat L.
Read Full Comment
... project seem to work (all test run smoothly ... code-coverage 70%) 4) `composer update`don't show anything left to install (--> Is this what you mean check doctrine updates?) Any other idea? Cheers!
... because we made it to specifically work with `CheeseListing` objects only, but also because it involves digging into Doctrine internals, which would likely complicate moving the constraint to a non-entity even further. I wonder how you would have solved that. :)
... /doctrine-orm-adapter pagerfanta/twig What Composer output do you have? No errors? Nothing to install or update? Also, could you clear the cache and try again? Still the same error? Cheers!
... you need to drop the incorrect migrations as you suggested, then create the DB and schema via Doctrine commands instead, then generate new migrations for your specific DB provider. Cheers!
... setSites() method on User? That's the only piece I don't see here. It's also odd that Doctrine is complaining about the ArrayCollection - as it implements the Collection interface class that it says it actually wants :). Cheers!
weaverryan
weaverryan
Read Full Comment
... Hey Kiuega, I'm not sure about KnpPaginator, but I think a good idea to try. Doctrine Paginator is just a bit more lightweight and low level, Knp Paginator has more overhead, but if you get used to it - why not to try ...
Hi i am trying to install doctrine for work with docker but when i install orm (composer require orm) then orm install successfully but command prompt not work correctly. and for this reason i could not create ...