2726 search results for Doctrine

Hey Rakodev! Yep, that makes sense. We're going to add a note about this: it's important to know that if you have *anything* that is loading data in a way *other* than the standard Doctrine loader (custom data provider ...
weaverryan
weaverryan
Read Full Comment
Ran into this today in Chapter 6 when tried to fetch the user. A simple fix is to add a new annotation `@ORM\Table(name="`user`")` to the User class using backticks around user between the double quotes. This helps Doctrine 2.x to use our user table, not PostgreSQL's. ;-) ...
Balázs S.
Balázs S.
Read Full Comment
Hello, Can you explain me, why you don't suggest on doctrine repository to typeHint $query with string ? So next time someone has this error, he could have a clean Error. Or this is a bad idea for some reason ? Best regards ...
Jérôme B.
Jérôme B.
Read Full Comment
Diego , como va , lo que digo si hay alguna funcion de symfony que pueda desde una REST API externa tomar todos los metodos (put , get , delete ..... ,etc) y volcarlos en entidades ? lo de doctrine lo digo ya que hay ...
Gustavo C.
Gustavo C.
Read Full Comment
Hey Gustavo C. I don't fully understand what you mean with "framework with creates entities from web api external". But what Doctrine does, in short, is to read some metadata from your entities that you define/write, and then convert it into SQL statements and execute them Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... \AppBundle\Entity\EnclosureTest::testItAddsDinosaurs Doctrine\Common\Collections\ArrayCollection Object (...) does not match expected type "integer". although it works with explicit integer value: ` $this->assertEquals(2, $enclosure->getDinosaurs()->count()); ` ...
Yep, this is sound advice. Towards the end of this tutorial, we'll set add something to "auto-set" the author via an entity listener (which is basically the same as a Doctrine listener). That doesn't accomplish the goal ...
weaverryan
weaverryan
Read Full Comment
Hello! Thanks for your reply. The code above didn't work in Doctrine 2.6. I only managed to make it work by adding more custom code haha. I've shared it below. I'd prefer to keep the custom query builder methods in the ...
Duilio P.
Duilio P.
Read Full Comment
Hi, when I try `dd($client->getResponses()->getContent())`, I get an error: Doctrine\DBAL\Exception\DriverException:\n An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away\n I don't ...
Hmm, yeah, I think Doctrine can't do much more for you but you may want to enable MySql logging then. It's not recommended, it may slow down your app but I believe you will use it only for developing https://stackoverflow.com/a/7915324 Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hello, Ryan! A dude.., the version of symfony 2.8 that comes with the option of micro-framework that is like this? This ready to use or you have to shape it as in this tutorial? Another question, if I want to put here ORM doctrine, as you would? Thank you Greetins ...
JuanLuisGarciaBorrego
JuanLuisGarciaBorrego
Read Full Comment
Working on Windows 10 after reloading the doctrine fixtures in the data base when I refresh the home page the php server dies with the following error: Compile Error: ContainerNB37shz\srcDevDebugProjectContainer ...
Hey Sung L. Adding extra fields to a "bridge" table when using Doctrine's ManyToMany relationship is not possible, you have to do a workaround. Read my answer here: https://symfonycasts.com/screencast/doctrine ...
MolloKhan
MolloKhan
Read Full Comment
Hey Michel, For me it looks like you don't have Doctrine bundle installed in your project. Could you explain what exactly steps you do to see this error? Did you download the source code of this course? I what directory are you: start/ or finish/? And what command exactly are you executing? Cheers! ...
Hey Chris! Ah, indeed - the MariaDB part might hold the key! Check out this issue: https://github.com/doctrine/dbal/issues/2985 - and the possible fix - https://github.com/symfony/symfony-docs/pull/9547/files - that ...
weaverryan
weaverryan
Read Full Comment
Hey Sung L.! Glad you like it ❤️ It's not a perfect process, but here's how you can import from an existing database https://symfony.com/doc/current/doctrine/reverse_engineering.html You'll need to add the `@ApiResource` annotation by hand after finishing... but that should be it ;) Cheers! ...
weaverryan
weaverryan
Read Full Comment
... idea. Yes, you can use Doctrine event listener to listen, here's an example: https://symfonycasts.com/screencast/symfony3-security/encoding-user-password Cheers!
Hey Gballocc7 I think this use case is complex for doing it with Doctrine ORM, have you tried writing a raw sql? I think it will be easier. If you have problems hydrating the results what you can do is to fetch first all the matching ids and then in a second query fetch just those id objects Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey kubaf Wow, you are totally right. I was on a latest release of DoctrineFixturesBundle where Fixture class doesn't implement DependentFixtureInterface anymore. I think your solution is good enough, just extend from `Doctrine\Common\DataFixtures\AbstractFixture` We will see what we can do about tutorial's code Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
I think everything is good. I compare my code to the code from 1st episode in Doctrine. There are no additional Errors or infos. I looked today on slack site and there are some massages from Kirk :D. The problem is that i do not have any appearing window from slack on my website. ...