... Hey Ryan S.,
> I find it odd that if doctrine actually requires these packages why they aren't installed as dependencies at time of install?
Some dependencies are optional, and you need to install them only if you use ...
... another at some point. I find it odd that if doctrine actually requires these packages why they aren't installed as dependencies at time of install?
... '
arguments: [ { someProperty: 'strategy' }, {...} ]
...
```
Then you have to bind that service to your ApiResource (entity), and then it should work. You can find more info about configuring filters here: https://api-platform.com/docs/core/filters/#doctrine-orm-and-mongodb-odm-filters
I hope this helps. Cheers!
Hey Kuba,
That was totally a bug, not sure how we missed it when was recording the course. Anyway, it's fixed in the source code and code blocks now. And yes, you're right, we need to extend "Doctrine\Common ...
... error:
In BaseFixture.php line 12:
Attempted to load class "Factory" from namespace "Faker".
Did you forget a "use" statement for "Doctrine\Migrations\
Version\Factory"?
Can you help me?
... field category, and they can have more than one category. So I need a manytomany table yet I want them to have a single table for both. How can I do that with doctrine?
... update my entity yml file) be stored in a repository while all the auto-generated code that is done by doctrine and Symfony (so far it looks like just the getters and setters for the POPO file) be stored in the entity file?
...
Cannot autowire service "App\Repository\UserRepository": argument "$class" of method "Gedmo\Tree\Entity\Repository\AbstractTreeRepository::__construct()" references class "Doctrine\ORM\Mapping\ClassMetadata" but no such service exists.
Can you show me the rigth direction where to dig?
... may want to read it
If you are using MySql and Doctrine 2, this is how you can use UUID's as primary key
```
// SomeEntity.php
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="UUID")
* @ORM\Column(name="id", type="guid")
*/
private $id;
```
Cheers!
hey Piotr K.
May I ask what will be your next step? are you going to maintain your old login system? or migrate it to something new? Anyways I think that mapping it to Doctrine entity is a good thing, and everything ...
not related on this tutorial but can i ask this question?
i follow the "little" intro about doctrine on this https://symfony.com/doc/current/doctrine.html
want i want to ask its when ever i acces http://localhost:8000 ...
... single andWhere() if I need to be more clear about how I want it to work. We talk a little bit about that here: https://symfonycasts.com/screencast/doctrine-queries/and-where-or-where#codeblock-0e8ea207d8
Happy new year to you too!
... files property on your entity
yep ! I added validation constraint in the entity and it's now working. At least there is doctrine exception no more.
Don't bother about the HTML5 (unless you know why) since there is form validation it's good enough. ...
... ]: Syntax error: 7 ERROR: syntax error at or near "user"
LINE 1: DELETE FROM user`
If anyone else has this problem, it's easy to change the table name for the entity using annotations. Check out https://stackoverflow.com/questions/34532785/rename-table-name-with-doctrine-migrations.
... :
```
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
```
The entity was not "really" deleted, but apparently i asked Doctrine to think it is...
My bad, i totally forgot about that annotation.
Thank you for your investigations :)
Keep up the good and fun work guys !
Cheers.
Hey Dominik,
First of all, because this screencast is not about StofDoctrineExtenstion but about Doctrine relations. StofDoctrineExtenstion has many useful behaviors we didn't use here, but that's because we just don't ...
I added the namespace but still receive the same error as Daniel (also Daniels solution doesn't work for me).
However, I renamed my "Article" class to "Drops" (as "Drop" wasn't allowed with doctrine), so might this be ...
... doctrine query - In my tiredness I made the mistake of querying it on a property that the entity did not have (username). So for anyone else that's the kind of message you'll get back when your query is not returning anything. Silly me.
You may find interesting this library then https://github.com/doctrine/migrations
What I like to do is to auto-generate migrations by running `bin/console doctrine:migration:diff`
Usually I only create one migration ...
... of course uploading media. I saw most of them in Stof Doctrine Extensions. However, you guys making everything easier then it really is :)
Another topic but is there AJAX based alternative to knp-paginator-bundle?
Thanks for all your help.
2725
Doctrine
Filter Results