I glad to see new video for Doctrine. Thnak you! ;)
BTW, if it possible , Could you add pause/unpause functionality video for toch screens? I mean , like for desctop PC, when I can click in the middle of video frame. For Desktop PC I see…
Hey Shubham,
The "dinosaurs" property is a Doctrine's ArrayCollection... but yeah, you can think about it like about an array on steroids, and the first() method returns the first value of that array or null if the array is empty, that's why we…
…mature orm framerowk like Doctrine doesn't support having attributes on a many-to-many relationship. To me that's enough to dismiss Doctrine as garbage and start looking for alternatives. What is disturbing is that Symfony seems to "promote" Doctrine as the go-to…
Hi
i am trying to install doctrine for work with docker but when i install orm (composer require orm) then orm install successfully but command prompt not work correctly. and for this reason i could not create database.
when i am try this command php…
hello then I try to ./bin/console doctrine:fixtures:load
I got this error :-(
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected '$manager' (T_VARIABLE) in /Users/jorgfluck/docker/login/src/DataFixtures/UserFixture.php:21
Stack trace:
#0 [internal function]: Symfony…
I believe you forgot to enable the doctrine extension. Here you can see how to do it https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/configuration.html#activate-the-extensions-you-want
Whats the difference between make:migration and doctrine:migrations:diff ?
…native Doctrine pagination, so that's a different thing. Yes, both solves pagination problem, but in this video we use a third-party bundle for this called knplabs/knp-paginator-bundle . It already has more features and easier to use than Doctrine pagination. Doctrine pagination…
And what about https://www.doctrine-project.org/projects/doctrine-orm/en/2.8/tutorials/pagination.html
I think this tutorial have to be updated with provided reference because it out of date.
Hello guys,
when I run : symfony console doctrine:database:create
I have 3 red messages :
An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (n…
There's a situation where a Doctrine event on PrePersist might not work with GraphQL? The data persister isn't triggered by my fixtures for my tests so, here's another difference I guess.
|
|
// ... lines 1 - 47
|
|
App\DataProvider\UserDataProvider: |
|
bind: |
|
$collectionDataProvider: '@api_platform.doctrine.orm.default.collection_data_provider' |
See Code Block in Script
Hello,
I can't install stof/doctrine-extensions-bundle.
I get the following error message:
Using version ^1.4 for stof/doctrine-extensions-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony…
Hello there,
I try to install doctrine and I got the following error:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In EnvVarProcessor.php line 76:
!!
!! Environment variable not found: "DATABASE_URL".
!!
!!
!!
Script @auto-scripts was called via post…
Hi,
Thanks for the speedy response.
doctrine/annotations was (and is) installed.
With the fourth argument present in the call to the JSON serializer...
`
return $this->json($user, 200, [], [
'groups' => ['main'],
]);
`
...it returned an empty object.
Did a quick Google to see if anything…
…Diego,
If i put back doctrine.orm.naming_strategy.underscore in my doctrine.yaml file, i then get a deprecation message : User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
The…
i already run the composer require doctrine/doctrine-migrations-bundle "^3.0". But when trying again the php bin/console make:migration still come up with the [ERROR] Missing package: to use the make:migration command
About mocking model-objects (in my case Doctrine entities): The service which I'm testing makes use of the auto-generated ID of the provided entity. However, the Doctrine entity does not have a setId()-method, so setting an ID just for testing is not…
what's the difference between
use Doctrine\Persistence\ObjectManager; and use Doctrine\Common\Persistence\ObjectManager;
actually what I did was install the Doctrine Test Bundle and it also refreshes the db after every test. Found here https://symfony.com/doc/current/testing/database.html#resetting-the-database-automatically-before-each-test
x
1000+