2725 search results for Doctrine

Hey Julien, With ManyToMany you need to make this relationship first. We talk about this kind of relationship here: https://symfonycasts.com/screencast/doctrine-relations/many-to-many - but you may want to use this ...
Hello |mention:213| The problem with the ARRAY error is still here "Undefined constant Doctrine\\DBAL\\Types\\Types::ARRAY" despite this https://github.com/symfony/maker-bundle/issues/1437 I didn't want to downgrade ...
Hey Henry, In Symfony project: just change "database_driver" to "pdo_sqlsrv" instead of "pdo_mysql" in your "app/config/parameters.yml". For custom project based on Doctrine - find a place where configuration ...
Hello Rayan I have created a "UserApi mapper" to map the Doctrine User entity and a "BlogApi mapper" to map the Doctrine Blog entity. I try to create a sub-resource of the type /api/users/{id}/blogs, with ...
Exactly :). The trick is to keep your code organized and make sure that *all* queries include the WHERE statement for the correct site. I typically do this manually, but you can also have Doctrine automatically add that to the query (http://knpuniversity.com/screencast/doctrine-queries/filters). It's a matter of taste. Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey S-H, Thanks for sharing an alternative of building that WHERE part of the query with Doctrine Criteria - we will cover them too but a bit further in this course: https://symfonycasts.com/screencast/doctrine ...
Hi, i got an issue with the tutorial, When you insert into the User entity the following code : ``` /** * @ORM\Column(type="json_array") */ private $roles = array(); ``` Doctrine can't let me update the database because it says : > [Doctrine\DBAL\DBALException] > Unknown column type json_array requested." ...
Antoine-P
Antoine-P
Read Full Comment
... Ok, for now I've just fixed it. I deprecated doctrine/cache to version 1.12, an later run composer require "doctrine/dbal:^2.13" and app is working and tests are all green. I feel that I totally mashed up versions of components but for now it's ok. I'll see later. ...
... your `POSTGRES_PASSWORD` is *slightly* different than the one that comes with the recipe: https://github.com/symfony/recipes/blob/main/doctrine/doctrine-bundle/2.4/manifest.json#L31 Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Amine! You're right that something needs to set those properties! We're using the TimestampableEntity trait from Doctrine Extensions - https://symfonycasts.com/screencast/doctrine-relations/answer#timestampable-and ...
weaverryan
weaverryan
Read Full Comment
Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine ...
Ruslan I.
Ruslan I.
Read Full Comment
ApiTokenRepsitory cannot find my entity: Could not find the entity manager for class "App\Entity\ApiToken". Despite being defined: ``` namespace App\Repository; use App\Entity\ApiToken; use Doctrine\Bundle ...
Lluís F.
Lluís F.
Read Full Comment
... \AutoMappingTrait" not found while loading "Symfony\Bridge\Doctrine\Validator\DoctrineLoader". in /home/renevorndran/code-symfony-doctrine/start/vendor/symfony/error-handler/DebugClassLoader.php:346` Any Ideas how to solve it?
Hi, im having an issue with the source files. Class Doctrine\Common\Cache\ArrayCache does not exist. Ive searched a bit for a solution, but no success. I tried to change doctrine version, php version without change. Any help would be apreciated! ...
... symfony/maker-bundle v1.11.6 requires doctrine/inflector ^1.2 -> found doctrine/inflector[v1.2.0, ..., 1.4.4] but the package is fixed to 2.0.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
... class using Doctrine Criteria, we talked about Doctrine Criteria on SymfonyCasts, try to search it. I hope this helps! Cheers!
... \"", "trace": [ { "namespace": "", "short_class": "", "class": "", "type": "", "function": "", "file": "/app/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php", "line": 1544, "args": [] }, ` ...
there PHP: Version 8 Symfony: Version 5.2 with API platform I am trying to store Doctrine entity object to cache. When next time I retrieve same object from cache, doctrine consider that object as new object and try to persist it. Can u help me to solve this issue ? Thanks ...
... /projects/myproject/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/Driver/SymfonyFileLocator.php:84 any idea?
Gung mahendra M.
Gung mahendra M.
Read Full Comment
... \Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine\Bundle\DoctrineBundle\Registry given`