2708 search results for Doctrine

... I'm also getting the following errors in the terminal: [Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory
DannyandAndrea Avery
DannyandAndrea Avery
Read Full Comment
Just curious... why does Doctrine give ORM annotation to allow manipulation within the Entity file? Is it still bad practice to do it as part of the Entity file as opposed to a separate listener initiated in the services.yml file? http://symfony.com/doc/current/doctrine/lifecycle_callbacks.html ...
Terry Caliendo
Terry Caliendo
Read Full Comment
Hi Victor, Thanks. In fact i think about an application that could work with several databases. And in this case those databases would not have been built with doctrine. For instance a symphony application working ...
Gremet Laurent
Gremet Laurent
Read Full Comment
While I enjoyed learning about the Doctrine listener, it seems like a lot of extra work to put in the Doctrine listener to encode the password. Why not just encode the password whenever setPassword() is called ...
Terry Caliendo
Terry Caliendo
Read Full Comment
I had tried that and it didn't work as I'm running php7. Ended up having to replace the Doctrine annotations directory with this: https://github.com/doctrine/annotations/releases/tag/v1.2.5. And followed a few other instructions here: https://github.com/OfficeStack/OpenSkedge/issues/103 ...
Ryan Pardey
Ryan Pardey
Read Full Comment
... Bundles, Configuration & Environments - Symfony: Doctrine & the Database - Mastering Doctrine Relationships in Symfony - Symfony: Level up with Services and the Container - Symfony Forms: Build, Render & Conquer! - Symfony Security: Beautiful Authentication, Powerful Authorization
Boran Alsaleh
Boran Alsaleh
Read Full Comment
Dang! Then, I wonder if it's a Doctrine or MySQL weird version problem. What version of MySQL do you have? And what version of doctrine/dbal? You can run `composer info` to find out. Thanks for letting me know - hopefully we can find out what the issue is :). Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey Johan, Nice notice, thanks! Actually, we require only the latest 2.5 version of doctrine ORM due to the next line in composer.json: `"doctrine/orm": "^2.5"`. So Composer won't use 2.6 for this project even when ...
Just a small note: The "json_array" type is deprecated since Doctrine 2.6. You should use "json" instead. Source: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#json-array EDIT ...
Hey Maksym, MySQL returns denormalized data as any SQL server when you use JOIN operations, that's why Doctrine normalizes this data for you. Doctrine knows that you query data FROM *genus* table, so it returns unique ...
Thanks Ryan! I really appreciate you taking the time to look at it. I finally decided to remove the doctrine Password Hash Listener and encode the passwords at an other place. This works fine. I am still curious about what the cause of the issue is though. Doctrine scares me. ...
Lee Ravenberg
Lee Ravenberg
Read Full Comment
I copied the project from start and I'm getting this erro when I run php bin/console server:run PHP Warning: require(/home/uertas/Downloads/symfony-doctrine/start/app/../vendor/autoload.php): failed to open stream: No such file or directory in /home/uertas/Downloads/symfony-doctrine/start/app/autoload.php on line 11 ...
ugur ertas
ugur ertas
Read Full Comment
I think I found it. The profiling_collect_backtrace: '%kernel.debug%' should also be indented another level. ```yaml doctrine: dbal: default_connection: default connections: default ...
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