2725 search results for Doctrine

... :verifyAccountTwiceError Doctrine\ORM\ORMInvalidArgumentException: Detached entity 790 cannot be removed It's fine if I don't try to run request() a second time, but when I try $this->manager->remove($user) it throws this error. Very ...
Hi, I followed all instructions.. also similar user case is in course Go Pro with Doctrine.. but i am on Symfony 5.2.6 and getting this error and spend all day on it with studying more videos or QueryBuilder doctrine ...
... you can create custom methods that make custom queries. Here is a video all about the repository topic - https://symfonycasts.com/screencast/symfony-doctrine/more-queries - the only difference in that (other than we call ...
weaverryan
weaverryan
Read Full Comment
... on this here: http://doctrine-orm.readthedocs.io/en/latest/reference/dql-doctrine-query-language.html#new-operator-syntax When my head gets all foggy from thinking about how to arrange those mixed results the way I want ...
Jonathan Keen
Jonathan Keen
Read Full Comment
... For the specific `Doctrine\Common\Persistence\ObjectManager` issue, change the use statement in AppFixtures to `Doctrine\Persistence\ObjectManager`. There may be other changes you need to make, but that will hopefully take care of that one ;). Cheers!
weaverryan
weaverryan
Read Full Comment
... database > loading AppBundle\DataFixtures\ORM\LoadFixtures [Doctrine\DBAL\Exception\NotNullConstraintViolationException] An exception occurred while executing 'INSERT INTO genus (name, sub_family, species_count ...
Kosta Andonovski
Kosta Andonovski
Read Full Comment
... the value into the doctrine.yaml it makes it less flexible. Don't know if this is a design choice. I just wanted to point that out so it may get implemented in a future release of symfonycli and doctrine. (P.S.: I ...
Maximilian S.
Maximilian S.
Read Full Comment
Hey Dirk! Hmm. Yea, unfortunately, you can't have it "both ways": all parts of Doctrine use this schema_filter, including the schema manager. Here is what I would do, if you are ok getting a bit fancier ;). A) Set the ...
weaverryan
weaverryan
Read Full Comment
... - https://github.com/symfony/recipes-contrib/blob/master/stof/doctrine-extensions-bundle/1.2/config/packages/stof_doctrine_extensions.yaml This make me think that the recipe did *not* execute. Possible reasons are that (A ...
weaverryan
weaverryan
Read Full Comment
So, first i get this error: `! PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "DoctrineCacheBundle" from namespace "Doctrine\Bundle\DoctrineCacheBundle ...
... dynamic nature of the class, but here is the logic behind the search filter: https://github.com/api-platform/core/blob/435992613de0a012ad42b5352e71453a35061968/src/Bridge/Doctrine/Orm/Filter/SearchFilter.php#L168 If I'm ...
weaverryan
weaverryan
Read Full Comment
... the codding via annotations... I think it is messy and is not PHP... sorry guys I LOVE annotations, but I like them a different amount in different situations. For routing & Doctrine metadata, I love annotations. The ...
weaverryan
weaverryan
Read Full Comment
... be implemented via Bundles (Beberlei Doctrine Extension), a mysql index have to be created via @Entity annotation and even if you do all this, you are not done, you have to escape the $searchTerm manually, because ...
... Doctrine instance from the request information for parameter "invoice" below my configuration: - InvoiceRepository ``` namespace App\Repository; use Doctrine\ORM\EntityRepository; class InvoiceRepository extends ...
Gianluca M.
Gianluca M.
Read Full Comment
... Doctrine. Thank you as usual! The database tables were created, in mysql the keys, indices, and foreign keys were not named the same as I had before because they are auto-generated by doctrine in Symfony, but that s not issue rather nicety.
... is how Doctrine works: the security system will initially query for the currently-authenticated user. Later, when API Platform queries for that same User, Doctrine returns the *same* object (instead of making a 2nd query ...
weaverryan
weaverryan
Read Full Comment
... DoctrineFixturesBundle are you using? (try `composer show doctrine/doctrine-fixtures-bundle`) We use an older version on this tutorial (which you will get if you download the course code) as this tutorial is getting a bit older now, and ...
weaverryan
weaverryan
Read Full Comment
... Doctrine in any way. If you put these in the `src/Entity` directory, you won't even need to change the API Platform configuration to look in another directory (but if the classes live elsewhere, it's just a simple config ...
weaverryan
weaverryan
Read Full Comment
Hey Jonathan! Thanks for the really nice words!!!! You're awesome! Ok, your query indeed sounds difficult, and is probably a decent use-case for skipping Doctrine and going to SQL. Can you do it with the QB or DQL? Of ...
weaverryan
weaverryan
Read Full Comment
Hey Alexander, Yeah, ManyToMany relation is implemented with an auxiliary table behind the scene where Doctrine keep entities IDs. And as soon as you need to add extra data on this auxiliary table - you can't use ...