... ]
Class "AppBundle\DataFixtures\ORM\LoadBasicParkData" can't implement "OrderedFixtureInterface" and "DependentFixtureInterface" at the same time.
I use Symfony 3.3.18 and doctrine-fixtures-bundle": "2.4.1"
You know why ?
Ohh, you have a good point and probably from a DB point of view that would be the way to go but to be honest I haven't done that on Doctrine, so, I'm not totally sure if it's supported or not (Maybe yes?). If you find more info about it please let me know :)
Cheers! ...
... this out: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/annotations-reference.html#table
Cheers!
Hello,
i am using mysql v.5.7 with dbal v.2.5 even if the is server_version: '5.7' but i am still unable to create the database with the command
[Doctrine\DBAL\Exception\ConnectionException]
An exception occurred in driver: SQLSTATE[HY000] [1049] Unknown database 'symfony' ...
Hey Carlos,
Hm, I think you need to configure a few database connections and Entity Managers in your case, see this article in the docs for more information: https://symfony.com/doc/current/doctrine ...
Hey Peter K.
Yeah you have a tricky situation. As I know this cannot be done automatically because this fields are not synced, to sync them you can create Doctrine entity listener, and listen to PreUpdate and probable PrePersist and check your list changes and sync lists.
Hope this will help. Cheers! ...
Hey Gballocc7
Just do It! Woops, it's not Nike ads =) You should can easily setup ManyToMany relation, between News entity and Category, and the same way for Warnings entity. Doctrine will create separate join tables so everything will work as you want!
Cheers! ...
Hey Vesna!
Sorry for the slow response. If you really only need to return the count and the product name, I'd just write this in raw SQL - no great reason to try to put it into DQL/query builder: https://symfonycasts.com/screencast/doctrine-queries/raw-sql-queries
Cheers! ...
... I haven't been able to execute it successfully yet. There is an issue open regarding this very same point. The maintainer pointed out the test case as reference https://github.com/hautelook/AliceBundle/blob/master/tests/Doctrine/Command/CommandTestCase.php but is not working for me either
Could I ask you one more question?
For categories, do you use the Tree component of Stof Doctrine Extensions of do you do it on "your own"?
What do you suggest to implement categories inside a web project? (By example Categories for space bar articles) ...
... //github.com/doctrine/orm/issues/7416
Why this problem: because on slug there is index, and indexing varchar 255 is prohibited.
And you are using the CommentRepository in your controller, right? Can you double check that you are on the dev environment? or that you loaded the fixtures for the dev environment
Another thing you can check is the profiler at the "Doctrine" tab, so you can see which queries are being executed ...
... Hey Lavin
I'm far from being an expert on translating a site but what I would do is to add a listener for detecting which language is chosen (parsing the URL) and storing it on a session key. Then I would create a doctrine filter for automatically inject the WHERE clause using the session.
Cheers!
... downloading the course code for this (the Doctrine Relations) tutorial? What version of Composer do you see if you run `composer --version`?
Cheers!
Sorry, i talked too fast now i have this error "Uncaught PHP Exception Doctrine\DBAL\Types\ConversionException: "Could not convert database value to 'array' as an error was triggered by the unserialization: 'unserialize(): Error at offset 0 of 10 bytes'" do you have an idea ...
... cascade operations here: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html#transitive-persistence-cascade-operations
Cheers!
Ohh you are on MySql 8, in that version the password encryption changed. Take a look to this post: https://stackoverflow.com/questions/51489616/how-to-configure-doctrine-symfony-4-to-connect-with-mysql-8-0
You can just ...
... could not find driver (Doctrine\DBAL\Exception\DriverException)
So all steps are skipping.
How can I fix it?
Thank you in advance.
... declared abstract or implement the remaining methods (Doctrine\Common\DataFixtures\DependentFixtureInterface::getDependencies) in /var/www/dev/svfx/src/DataFixtures/PostFixtures.php on line 51
... power of collections until I was given to look for that function, lol => https://www.doctrine-project.org/projects/doctrine-collections/en/latest/index.html#collection-methods
2726
Doctrine
Filter Results