got an awful error on the SubFamily.php
AnnotationException in AnnotationException.php line 42:
[Syntax
Error] Expected
Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got '@' at
position 74 in class AppBundle\Entity\SubFamily. ...
Woohoo! I know what you mean - there are so many subtle options with relationships... but if you get them right, man, Doctrine relations really kill it.
Cheers and good luck! ...
Suite hook callback: FeatureContext::clearData() must be a static method
Making it a static method then means that $this is not available.
How do we then get the container? as can not use $this->getContainer()->get('doctrine')->getManager(); ...
Hey Ryan
I will send you my entities this evening for me ( I am french ).
Thanks you again for your time.
Sorry for the delay this is my entities
https://gist.github.com/Gregusse/52c28d1884bd672e63ee515edc734ac5
Like Stéphane , doctrine/dbal v2.5.5
Cheers. ...
Hey somecallmetim ,
I'm glad you found solution yourself quicker than I answered it ;) BTW, we have Doctrine migrations in this course, so `$ bin/console doctrine:migrations:migrate` should help in this case too.
Cheers! ...
I found the same problem!
You can fix this like that, just add the following lines to the `config/packages/doctrine.yaml`:
```
doctrine:
orm:
controller_resolver:
auto_mapping: true
```
In the latest versions of Symfony, that property will be `false` by default. ...
Symfony 7 throws the following error on using Timestampable.
"Gedmo\Timestampable\Mapping\Event\Adapter\ORM::getRawData Value(): Argument #1 ($mapping) must be of type array, Doctrine\ORM\Mapping\FieldMapping given" ...
Hi @MolloKhan,
The problem was not related to my config files but to Docker-Desktop itself. [Here is the solution](https://symfonycasts.com/screencast/symfony-doctrine/docker-env-vars#comment-30555) ...
Hi,
I´m interested in this course but I´m using Mezzio instead of Symfony as PHP-Framework, so I would like to know if the things you learn in this course about Doctrine are framework independent ? ...
Getting old but while https://github.com/doctrine/migrations/issues/1163 is still a thing; dump-schema does not add FK's. It might be advisable to use `symfony console doctrine:migrations:diff --from-empty-schema` instead of `symfony console doctrine:migrations:dump-schema`. ...
It is good to know that Doctrine docs are helpful to you. By the way, we give for free the chapter script (including code blocks) below the video, so you can follow our tutorials at least in that way
Cheers! ...
Hey there,
What do you mean by "connect the whole project into a database"? In many of our tutorials, we use a database to store information. If you're using Doctrine, that's a straightforward thing to do ...
... Ok, since you're in Symfony 5.4 you'll need to install `doctrine/annotations` and, of course use annotations on your routes (unless you're on PHP 8). You can find more info here: https://symfony.com/doc/5.4/routing.html
Cheers!
Woah!!!
This is the reason why I keep doing almost every SymfonyCasts tutorials. Even though I'm very familiar with Doctrine, I did not know that trick! It made my day!
Keep it up, friends! ...
Hello! How to xdebug AMQP message handler? Breakpoint not working, however if i use doctrine message handler (i previously comment in messenger.yaml line with message) xdebug work perfect P.s. I use PHPStorm with Xdebug ...
Awesome :) - glad you got it figured out. It's configurable, but out-of-the box with Doctrine in Symfony, property names are "snaked-cased" like this, which I kinda like (but it can surprise at first!)
Cheers jlchafardet! ...
... Wow, that's super odd. Perhaps something changed in the latest version of Doctrine Fixtures bundle but I can't be sure. My apologies for your troubles and thank you for your suggestions, we'll consider them.
Great news! I would like to take this opportunity to share this article with you: https://soyuka.me/esql-alternative-to-doctrine-query-language-why/
Maybe it could give you some ideas 😇 ...
Hi guys,
In this tutorial, you use the doctrine to store failures messages. Why you don't store them in RabbitMq with that x-dead-letter-exchange ? Is there any specific reason ? Thanks ...
Hey |mention:71738|
That's unexpected. Did you add the Slug attribute to your property? `#[Slug(fields: ['title'])]`
like shown in this code block https://symfonycasts.com/screencast/symfony-doctrine/sluggable#codeblock-1fd8df0329
Cheers! ...
2726
Doctrine
Filter Results