1000 search results

I keep getting this error ```[Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY00 0] [2002] No connection could be made because the target machine actively refused it. [Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000] [2002] No connection could be made because the target…
Hey @Sym If you have Doctrine installed on your project it should just work out of the box. Double check that you are using Doctrine on your project and if that's the case and the problem persists, please, let us know :) Cheers!
MolloKhan
MolloKhan
Read Full Comment
Working on Windows 10 after reloading the doctrine fixtures in the data base when I refresh the home page the php server dies with the following error: Compile Error: ContainerNB37shz\srcDevDebugProjectContainer::load(): Failed opening required 'C:\Projects\the_spacebar\var\cache\dev\ContainerNB37shz\getConsole_ErrorListenerService…
Hey Gianluca, I think your "doctrine_cache" configuration should be like: ``` doctrine_cache: aliases: memcached_cache: service_connection_memcached_provider providers: service_connection_memcached_provider: memcached: connection_id: "memcached.doctrine" ``` And then you should be able to use the short "memcached_cache" alias to get…
Hey Ahmed, Could you clarify what exactly "Doctrine extension Bundle"? Yes, StofDoctrineExtensionsBundle requires "gedmo/doctrine-extensions" package as the bundle is just a wrapper for that library that has integration with Symfony if you mean this. Cheers!
For Symfony 4.2 with Doctrine Fixtures 3.1: behat.yml.dist: ``` default: suites: default: contexts: - FeatureContext: kernel: '@kernel' fixturesLoader: '@doctrine.fixtures.loader' - Behat\MinkExtension\Context\MinkContext ``` features/bootstrap/FeatureContext.php ``` public function __construct(KernelInterface $kernel, SymfonyFixturesLoader $fixturesLoader) { $this->container = $kernel->getContainer(); $this->fixturesLoader…
sergiupopa
sergiupopa
Read Full Comment
Gey Gustavo, I'm not sure Doctrine has such annotation :) How will Doctrine know to whom assign it? It's only possible to set genus to NULL on deleting. I *think* you can add a listener to listen to preRemove event and implement a custom…
…4.1 and found the doctrine:migrations:generate and diff commands just created migrations with VOID inside (ie there was no SQL), so then running migrate would create/update the migration version table but not create the users table. However running doctrine:schema:update --force…
Timothy J.
Timothy J.
Read Full Comment
…the Doctrine\Common\ClassLoader somewhere in your project? Probably not, I think it's just used somewhere internally. If so - you don't need to do any actions, you just need to wait for updates and upgrade your dependencies. But if you use doctrine/common…
When i call php ./bin/console doctrine:fixtures:load I get an error Call to a member function text() on null
I need to create some Doctrine Entities in my bundle, to be used by the external App. How can I add and configure these Entities?
Lucas Baldassari
Lucas Baldassari
Read Full Comment
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
Hey Trafficmanagertech Usually you don't need Doctrine itself, what you usually need is a repository or the entity manager, but if for some reason you need it, I believe you can inject it directly to a controller's action Cheers!
MolloKhan
MolloKhan
Read Full Comment
In my app I am using Doctrine Blameable Extension, so it sets the current user when creating a post on the createdBy field. How can I handle this when running my tests?
Hi, When i attempt ./app/console doctrine:schema:create I receive this error [Doctrine\Common\Annotations\AnnotationException] [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got 'length' at position 26 in property AppBundle\Entity\Movie::$samsCharacterName. doctrine:schema:create [--dump-sql] [--em [EM…
As soon as I switched to Doctrine's Criteria system I started getting this error: ``` An exception has been thrown during the rendering of a template ("Notice: Undefined property: AppBundle\Entity\GenusScientist::$1") in genus/list.html.twig at line 20. ```
Giorgio Pagnoni
Giorgio Pagnoni
Read Full Comment
Hey Nina, Have you imported namespace "use Doctrine\ORM\Mapping as ORM;" before GenusScientist class declaration? If so, could you show us your GenusScientist::$genus property definition with its annotations? Cheers!
Hi,guys after load bin/console doctrine:fixtures:load unexpectedvalueexception could not determine how to assign createAt to a AppBundle\Entity\GenusNote object
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? Something like the following? User Entity: ``` public function setPassword…
Terry Caliendo
Terry Caliendo
Read Full Comment
Why don't you use doctrine:generate:entities instead of Phpstorm autocompletion?
Maksym Minenko
Maksym Minenko
Read Full Comment