... /........../projects/learn_symfony/symfony-doctrine/config/routes/../../src/Controller/ (which is being imported from " /........../projects/learn_symfony/symfony-doctrine/config/routes/annotations.yaml"). Make sure annotations are installed and enabled.
... Hello Ryan!
I'm trying to make an embedded entity but with a non-doctrine object
How could I create a form with Embedding custom DTO Object property (This object is not a doctrine entity)?
For example:
Dto model ...
... example here: https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/1.6/manifest.json#L33-L36
Cheers!
Thanks for your response. In this course if we typed alt+enter to showing context action on entity class will show up 'Add doctrine repository' and if we clicked this action its will generate new doctrine repository file automatically, but my editor not to do the same act ...
... 'findAllPublishedOrderedByRecentlyActive'. The method name must start with either findBy or findOneBy!
in vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php at line 226
I've tried to clear the Symfony cache, but the issue remains.
...
Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance
of ...
... \ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in start/var/cache/dev/ContainerQkMdM9p/App_KernelDevDebugContainer.php on line 1151
Hey Sean!
Thanks for the post here! Thanks to this ping, I'm now following up and pushing on the fix in doctrine/data-fixtures so we can get it as soon as possible - https://github.com/doctrine/data-fixtures/pull/349 ...
So basically migrations for doctrine serve just as a speed up process of doctrine update, since the entities changes are already in the version control system. But I assume figuring out each time ORM entities changes ...
Hey Dung L.
As far as I know there is no way to get the final SQL from Doctrine because Doctrine sends the "prepared" SQL to the Database but what you can do is to enable logging in your Database so you can get the final SQL. Here you can see how to enable it: https://stackoverflow.com/a/304008/2088447
Cheers! ...
Hey Galgaldas,
Haha, I suppose it's not :) Well, at least I don't see any info that sas it's deprecated in the source code :)
https://github.com/doctrine/orm/blob/b06efe34087921274706016bc54bb0a373e4e0d2/lib/Doctrine/ORM/EntityManagerInterface.php#L33-L38
I think you just can get the DB connection in a few ways.
Cheers! ...
Hey Akavir S.
Interesting! It sounds like one of Doctrine bugs 🐛 (https://github.com/doctrine/orm/issues/6267) If it make sense, than I'll advice to modify your query somehow, probably add `r.id` will fix it, or not anyways try, and come back with some results)
Cheers! ...
Hey Abdessamad E.!'
Good solve! This should NOT be necessary, but there is temporarily a bug in DoctrineBundle that is requiring you to clear your cache after any Doctrine "metadata" changes. Actually, the bug has been ...
Hi,
When i attempt ./app/console doctrine:schema:create I receive this error [Doctrine\Common\Annotations\AnnotationException]
[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got ...
Hey Dung,
Good question! Definitely you need to create an entity first, and then let Doctrine to do the low level set up for you. The reverse is useful for legacy projects only, when you have a DB already and want to migrate your project to Doctrine base on your table.
Cheers! ...
Hi Tobias I. ,
Personally, for fields like createdAt and updatedAt I choose to use Doctrine Lifecycle Callbacks:
https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/events.html#lifecycle-callbacks
For author, api-platform already handle it if you give the author IRI to the POST/PUT endpoint. ...
Hi, thanks for this tutorial.
I have created some messages and I used doctrine transport like in this tutorial , but I want to ask you as you are an expert in symfony , better using doctrine transport or rabbitmq ? which one is the most efficient and faster ? Thanks ...
Hey @Sym
If you have Doctrine installed on your project it should just work out of the box. Double check that you are using Doctrine on your project and if that's the case and the problem persists, please, let us know :)
Cheers! ...
Hey man
I think I found the problem. In your `Patient` entity you missed an starting `@` on line 8 `ORM\Entity(repositoryClass="Ewave\Repository\PatientRepository")`
Also, try enabling the `auto_mapping` Doctrine config ...
MolloKhan `LoadBasicParkData` extends `Doctrine\Bundle\FixturesBundle\Fixture` which implements `DependentFixtureInterface`...
When we remove extended class - `addReference` method is no longer available.
When we ...
2725
Doctrine
Filter Results