2725 search results for Doctrine

Hey MattWelander, You probably need to specify those collate and collation options in the `DATABASE_URL` since you're using Doctrine configuration this way. I'm afraid that `DATABASE_URL` may overwrite your config ...
Hey Matt! Yea, this is a weird thing about Doctrine... it doesn't "come up" much, but it is a bit inflexible :/. You could, at one point, call `$em->flush($entity)`, but that was deprecated and apparently was never ...
weaverryan
weaverryan
Read Full Comment
... Doctrine to use `"user"` instead of `user` for that Entity? Or do I need to rename the Entity to something else? I've tried to apply the quotes via an annotation `#[ORM\Table(name: '"user"')]` but that caused a ...
Hi weaverryan, Thank you for your help. I tried to do what you said but i have this error message : `App\Form\CountryType::App\Form\{closure}(): Argument #2 ($city) must be of type ?App\Entity\City, Doctrine\Common ...
Hello everybody, a happy new year to everybody. Especially the ones in the far east of europe. Could anyone please tell me why this statements throws an error when executed by doctrine but not when directly executed ...
... docker desktop app (bleh), the docker daemon was started and the symfony app found the database through doctrine right away. My next questions are out of scope, but do you know how to run the docker daemon without the ...
Hello @weaverryan. I just started a new symfony project with `symfony new` and run the `composer require doctrine` commande right after, to put your theory to the test. In this new project, everything seems to work ...
... all, when you create a ManyToOne entity, doctrine create method "add" and "remove"; if you want to enable embed write, you have to create a setter for user, setUser(array $users ), otherwise embedded write does not work ...
Gianluca-F
Gianluca-F
Read Full Comment
... the problem is on this line - https://github.com/api-platform/core/blob/1a811560d55c5f479fddcc8b7b0f7b36b6e734aa/src/Bridge/Doctrine/Orm/Extension/FilterEagerLoadingExtension.php#L155 - I'm not sure what it is, but something is going wrong with getting information about *how* to join to make this filter. Cheers!
weaverryan
weaverryan
Read Full Comment
... related resources; let we want to apply the same business rule ( hide unpublished content ) also on related resource ( es: a company endpoint that show related products, loaded lazy as doctrine entities ) Actually, I ...
Gianluca-F
Gianluca-F
Read Full Comment
... `Product` class with `Valid` above a collection of `productPhotos` - the validator would call `$product->getProductPhotos()` to validate them, which would cause Doctrine to query and hydrate ALL of the related photos ...
weaverryan
weaverryan
Read Full Comment
Consider this tho: this works flawlessly in propel! (just for argument sake, if it works in propel, out of the box, no extra bundle required, i think it would be great for doctrine to have it too). back on topic: yeah i ...
jlchafardet
jlchafardet
Read Full Comment
... onto that the fact that each row now has many translations, and you quickly (and correctly) get a big, ugly matrix. I use some of the more magic behaviors sparingly - learning from Doctrine version 1 that the magic has ...
weaverryan
weaverryan
Read Full Comment
... you'll have to implement something similar to what Doctrine migrations do. In a database table, you'll have to keep track of all executed commands, and before executing a command, you'll have to check the table. Your naming ...
MolloKhan
MolloKhan
Read Full Comment
Hey Ryan, Thanks for these fun courses in Symfony 6 :) Regarding the commands, is there a bundle that would allow commands to be run only once? I'm looking for behavior that's similar to doctrine migrations, where ...
FirstKlas
FirstKlas
Read Full Comment
... the-password-when-using-doctrine - try moving it there *and* don't forget to include the `->flush()` call. In case you're curious, or it's helpful, here is the logic that's called during login to trigger this entire ...
weaverryan
weaverryan
Read Full Comment
Hey Sudhir! Hmm, ok: Error 1: It looks to me like some bad data has been somehow put into your roles column in the database. This column is an array, that's been serialized to a string. Doctrine is trying to ...
weaverryan
weaverryan
Read Full Comment
... commets so /** * * and so on and when i do like shown here so bin/console make:entity it uses # as comment signs. This has to be something to do with bin/console I guess or some config like doctrine or something. It would be ...
... temporarily. But no.) So I went ahead and tried `composer require doctrine/cache "^1.12"` and that seems to work -- don't know if bad side effects will show up somewhere later on. If I understand it correctly, this ...
davidmintz
davidmintz
Read Full Comment
Hey Emanuele P.! Hmm. Yes, I tend to agree with the issue you linked to. If you're worried about SQL injection, then because you are using prepared statements (that's automatic with Doctrine), there's no risk. For XSS ...
weaverryan
weaverryan
Read Full Comment