... have Doctrine save everything correctly. But, `$newGenus` will still have a reference to the *original* ArrayCollection: when you clone, embedded objects aren't cloned, the new object just points to the original reference ...
Does Doctrine do any caching of ArrayCollections by default? I'm having some issues after doing my clone process above.
After doing the clone above, I return the "id" of the $NewGenus. When I later call the Entity ...
Hey guys, When I try to run "php bin/console doctrine:migrations:migrate" I get,
Migrating up to 20160918154810 from 0
Migration 20160918154810 failed during Pre-Checks. Error Provided type "?Doctrine\DBAL\Schema ...
... to get object's type using the same method I get an error:
```
Doctrine\Persistence\Mapping\MappingException: The class 'AppEntityUserProxy' was not found in the chain configured namespaces App\Entity, Vich ...
... /company/vendor/api-platform/core/src/Doctrine/Orm/State/ItemProvider.php",
"line": 87,
"function": "getOneOrNullResult",
"class": "Doctrine\\ORM\\AbstractQuery",
"type ...
Hello guys,
After creating the MixController class and refreshing the page in the browser I got a class not find error:
"Attempted to load class "ClassUtils" from namespace "Doctrine\Common\Util". Did you forget a ...
... Hi Ryan,
I'm a little confused by the association management methods of ManyToMany relationships in Doctrine. If I understand correctly, the reverse calls need to be done in the setters of the inverse side, not in the ...
Hey Ryan,
From the regular point of view I would say this course is a little advance for "Novice" level of folks who tries Symfony...
Can we dive really to the level you suggest in your title "Go Pro with Doctrine ...
Hi Artjan!
Actually, this is expected! For a detailed explanation, check out our Symfony2 tutorial, which talks about OneToMany relationships: http://knpuniversity.com/screencast/symfony2-ep3/doctrine-inverse-relation ...
... with the old User: app, Password: !ChangeMe! credentials.
And of course doctrine jells at me, when I want to create the database.
I tried to build the containers fresh:
```shell
docker compose rm -f
docker ...
am trying to have symfony doctrine generate my database with Swedish collation (otherwise the sorting of characters åäö gets all messed up).
I put this in my config file, but it seems to have no effect.
doctrine ...
... I do know that the reason Doctrine returns a `string` with a `decimal` type is exactly because it doesn't trust php to keep the exact precision if it returns it as a `double`. From their docs:
> For compatibility ...
... query to get the total number of items.
Here is the code:
```
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Adapter\AdapterInterface;
/**
* Class CustomORMAdapter
* @package AppBundle\Pagination
*/
class ...
... second in video where we're using it? Or probably to a specific code block where we have it?
But answering your question, I'm not sure what this means exactly, but as I see it comes from the "Doctrine\Persistence\Mapping ...
Hey Wondrous!
Sorry for the slow reply! We're usually much faster - that's my bad - prepping for a conference next week!
This is an interesting question/problem. First, when using Doctrine (ignore API Platform for a ...
... working site. But then following tutorial I'm trying to install doctrine with "composer require orm". And after that site is crashing with this error:
Argument 1 passed to
Sensio\Bundle\FrameworkExtraBundle\Request ...
... trace
[▼
"exception" => Doctrine\DBAL\Exception\ConnectionException {#588 ▼
-query: null
#message: "An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using ...
Hey Leszek C.!
Hmm! I'm not sure this is easily possible. There is a system in this called slug handlers - https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/doc/sluggable.md#slug-handlers - but i've ...
... updated the Question entity correctly :). By default (well, more accurately, thanks to this line of config that lives on your config/packages/doctrine.yaml file - https://github.com/symfony/recipes/blob/master/doctrine ...
... that the related column for these dynamic fields somehow exists in the database)?
Yes and no :). If you do manage to add a field to the PHP class *and* add the column to the table, Doctrine will not see it automatically ...
2725
Doctrine
Filter Results