2725 search results for Doctrine

Hey Dmitry V. Can you tell me which version of "doctrine/doctrine-fixtures-bundle" library are you using? I tried in 2.3 and it worked, but maybe they changed it for the latest version Also, you can run``` php bin ...
MolloKhan
MolloKhan
Read Full Comment
Found that there was a -v switch that indicated that it was a dateTime problem Exception trace: () at /media/johnk/73F9A5F807B5266F/workspace/DoctrineRels/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/DateTimeType.php:53 And at your suggestion looked in fixtures.yml and found the '>' was missing as the end of 'createdAt: ' ...
jk_scotland
jk_scotland
Read Full Comment
Yes, I imported namespace "use Doctrine\ORM\Mapping as ORM;" before GenusScientist class declaration. namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name ...
Hello When I type in the console php bin/console doctrine:migrations:diff I have the error: [Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation "@Doctrine\ORM\Mapping" in property ...
Hi, in my config.yml there is no doctrine cache section. It stops at spool: {type: memory} If I write it in that place it shows me: There is no extension able to load the configuration for "doctrine_cache" (in C ...
For some reason, I keep getting this PHP Fatal error: Class 'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' not found in /vagrant/starwarsevents/app/AppKernel.php on line 21 I added the 2.3.0 version of the ...
... 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 downloaded the course code and follower the instructions in the README, but my site looks like this [screenshot](https://github.com/Melissaeb/sc-doctrine-practice/blob/main/screenshots/page-screenshot.png) right now ...
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 ...