2708 search results for Doctrine

Anyone know if there's a way to have alice 'override' a primary key? @weaverryan is right, Alice _simply_ hydrate entities, so the behaviour is implied by Doctrine. In fact, you probably have a primary key with an id ...
Rénald Casagraude
Rénald Casagraude
Read Full Comment
... ..and the update of vendors code, run by the composer, seem to break one of migrations: `13:05:47 CRITICAL [php] Fatal Error: Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found ["exception" => Symfony ...
Yaroslav Y.
Yaroslav Y.
Read Full Comment
... ": "The class \"App\\Entity\\DragonTreasure\" cannot be retrieved from \"App\\ApiResource\\UserApi\".", "file": "/var/www/html/vendor/api-platform/core/src/Doctrine/Common/State/LinksHandlerTrait.php ...
I ran this command : php bin/console debug:config doctrine --env=dev doctrine: dbal: connections: default: url: '%env(resolve:DATABASE_URL)%' server_version ...
Manpreet-K
Manpreet-K
Read Full Comment
Hello there! I got a weird problem I don't know how to solve. Working on Symfony's project in version 6.2, and PHP 8.2 after running `composer require doctrine` errors occur: ``` - symfony/orm-pack[v1.0.0 ...
Bartlomeij
Bartlomeij
Read Full Comment
Hello I have tried the updated as well but still i am getting following errors - C:\wamp64\www\Symfony001\Symfony-Doctrine>composer require stof/doctrine-extensions-bundle Using version ^1.6 for stof/doctrine ...
Jayant B.
Jayant B.
Read Full Comment
... Doctrine\config/packages/doctrine.yaml" does not contain valid YAML: A Y AML file cannot contain tabs as indentation in "C:\\wamp64\\www\\Symfony001\\Symfony-Doctrine\\config/packages/doct rine.yaml" at line 8 (near ...
Jayant B.
Jayant B.
Read Full Comment
... ^7.2.9|^8.0 and do a composer update I get a fail on doctrine/inflector 1.3.* requires php ^7.1. I've updated then updated it so that it is looking for doctrine/inflector ^1.3, the composer update then runs but when it ...
Hey Krzysztof K.! Hmm, really good question :). As the StackOverflow shows, it "seems" simple enough... though there are some details to think about: 1) As I understand it, Doctrine doesn't really care whether an ...
weaverryan
weaverryan
Read Full Comment
Doctrine’s QueryBuilder

... /UserRepository.php // ... class UserRepository extends EntityRepository { } To make queries, you can use an SQL-like syntax called DQL, for Doctrine query language. You can even use native SQL queries if you’re doing ...

2:25
... -vvv at the end and I got this: "Exception trace: at /Users/tautvydas/PhpstormProjects/Lesson_3/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Loader.php:170 Doctrine\Common\DataFixtures\Loader ...
Tautvydas
Tautvydas
Read Full Comment
... // play.php // ... $em = $container->get('doctrine') ->getEntityManager() ; The code above from the script is deprecated, use the original code or follow the video: $em = $container->get('doctrine')->getManager(); ...
Do you think we should also inject Doctrine in the controller with `RegistryInterface $doctrine` instead of $this->getDoctrine()? This is my last question hehe, great course btw ...
Trafficmanagertech
Trafficmanagertech
Read Full Comment
hmm weird it works with root user without password seems the parseDatabaseUrl function https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/DriverManager.php doesn't like that url string. ...
Caim Astraea
Caim Astraea
Read Full Comment
please answer the question when I make changes in the organization, doctrine did not detect any change in the command doctrine: schema: update ...
How do I know what class to include in use statement when phpstorm suggests multiple one? For instance of LifecycleEventArgs I have Doctrine\Common and Doctrine\ORM. ...
3amprogrammer
3amprogrammer
Read Full Comment
If you have problem with /api Entrypoint: use this: ``` use ApiPlatform\Doctrine\Orm\Filter\BooleanFilter; ``` not this ``` use ApiPlatform\Doctrine\Odm\Filter\BooleanFilter; ``` ...
I have a silly question. Why caching markdown has anything to do with doctrine? I tough doctrine is related to database? That confuses me a bit. ...
3amprogrammer
3amprogrammer
Read Full Comment
Solution : Downgrade doctrine/common from 3.0 to 2.7 `composer require doctrine/common:^2.7 --update-with-dependencies` Source : https://github.com/stof/StofDoctrineExtensionsBundle/issues/413 ...
Deplaine N.
Deplaine N.
Read Full Comment
18 lines | src/DataFixtures/AppFixtures.php
// ... lines 1 - 2
namespace App\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
class AppFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
// ... lines 12 - 15
}
}
See Code Block in Script