2725 search results for Doctrine

Hey guys! Loved this tutorial. But I sill miss some hardcore examples. I have a legacy application and I had to create an API to talk to it. So no Doctrine at all. Not even for user authentication! Then I really got ...
... operation. so in this spirit, to get a Transaction from an Operation Type, it would have to go through Operation first, as there is no relation at all other than the OperationId on the Transaction ? hmmm I'm starting to see a way to "join" these 2 columns.(gota learn more on doctrine joins tho.)
jlchafardet
jlchafardet
Read Full Comment
Hey, Vlad! I can help you with it. This feature called ParamConverter in Symfony. Actually, in this case triggered the Doctrine Converter. This guy do all that magic: 1. Determine entity repository from typehinted ...
... number of queries, the SELECT is selecting data that I'm not using. I bet there is a way to tell Doctrine what columns we want to fetch. Excuse me, I mean what object properties... So, can that be done with the QueryBuilder, or do we have to write the DQL directly?
davidmintz
davidmintz
Read Full Comment
... to be accessible outside (twig). I tried to use the doctrine annotation to set a default value, but still I get the error saying that this field (votes) can't be null, I had to set the property to Zero to make it work ...
Hanane K.
Hanane K.
Read Full Comment
went ahead of myself and installed the berbeley extensions. doctrine.yaml file ``` doctrine: dbal: url: '%env(resolve:DATABASE_URL)%' # IMPORTANT: You MUST configure your server version ...
jlchafardet
jlchafardet
Read Full Comment
... happy with simple Doctrine fixtures and don't need all those Foundry features - great, just use them, it's totally valid :) Cheers!
... data"; $stmt = $em->getConnection()->prepare($query); $stmt->execute(); $stmt->fetchAll(); ``` How can i implement it with doctrine? because the result of this will be an list of how much ...
Raphael Schubert
Raphael Schubert
Read Full Comment
... as the $value, Doctrine will convert it to the proper type itself, but your code will be more clear as for me. I hope this helps ;) Cheers!
Hey SamuelVicent! You have a few options here. The easiest, but the one that contains the least information, would be to use the "doctrine" transport so that your messages are stored in a database. Then you can query ...
weaverryan
weaverryan
Read Full Comment
Hi victor I guess the doctrine migrations are different. In Laravel, they write classes for migrations, and when you run migrations, then those classes are compiled to SQL Queries, and then runs against the currently ...
... in the DB. As a second alternative, you may want to add cascade persist for that collection in your mapping and Doctrine will automatically do that persisting. I hope this helps! Cheers!
Hey guys, I have one problem related to custom data provider. What I need: Need to group data from specific table. So the data collection not will return array of entities but just array of arrays (because doctrine ...
... Hey Syed, I'm not sure how it works in Laravel, but yes, you're right, Doctrine generates database-specific migrations. And yes, if you generate it for PgSQL, you won't be able to run it for MySQL... and the vice versa ...
... to fetch the objects and then call some custom method on them to populate an extra field of data. But even in this last case, I would still call the core, Doctrine entity data provider from my custom data provider so that it does all the heavy lifting for me :). Cheers!
weaverryan
weaverryan
Read Full Comment
... tag is here: https://github.com/symfony/symfony/blob/c71c8727cc665c9e9b56e299fcfcc0adfbf02bac/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php#L75 - I would debug that `$taggedServices` variable to verify your service is there). Let me know if this helps! Cheers!
weaverryan
weaverryan
Read Full Comment
Hi everyone, I'm currently trying to install doctrine with the command `composer require orm`. But my terminal (DOS command prompt on Windows 10) crashes a few seconds after I launch the command. I'm juste getting ...
I have one more interesting point about the event dispatch after we call flush on doctrine. What if a messaging system such as RabbitMQ is temporary down. Your code just has completed the transaction, but you might lose ...
Actually, I wouldn't say "Doctrine is the most robust transport to use for failures". 1. you have one failed transport for every other transport. You can't have handle failed messages from other transports in different ...
Fabien Pot
Fabien Pot
Read Full Comment
... ' variable that is set in .env(.*). Maybe this is already considered by the symfony team. In that case: is it already implemented in current versions of symfony/doctrine? ...
Maximilian S.
Maximilian S.
Read Full Comment