1000 search results

Fatal error: Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::registerLoader() must be an instance of Doctrine\Common\Annotations\void, none returned in /home/ywoume/www/upgrade/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117 i use php7.1
Rajaona F.
Rajaona F.
Read Full Comment
I've been using Symfony and Doctrine for a few months now, but there's always been a couple of things about Doctrine that made me wonder. In this example you have added the argument EntityManagerInterface $em to the new() method. Could you tell me…
When I run "php bin/console doctrine:fixtures:load", I get: In ReferenceRepository.php line 141: Reference to: (App\DataFixtures\Article_0) does not exist However, doing some tiny debugging, I found out that if I change this line: $comment->setArticle($this->getReference(Article::class…
RoyalShape
RoyalShape
Read Full Comment
Having a small problem with "doctrine:generate:entities" when following along with my own project: http://windupbear.blogspot.com/2016/01/symfony2-and-doctrine-issues.html
Jon Chapman
Jon Chapman
Read Full Comment
I got this on composer install: [Doctrine\Common\Annotations\AnnotationException] You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1. Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception [RuntimeException] An error occurred when executing…
Ryan Pardey
Ryan Pardey
Read Full Comment
It doesn't work. Update to "doctrine/orm": ">2.5.0", "doctrine/dbal": ">=2.5-dev,
Tabla Mihai
Tabla Mihai
Read Full Comment
Duplicate of: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679 Hey Nizar , We're tracking all the Disqus comments, so don't need to duplicate your question multiple times, someone from our team will answer it anyways. Unfortunately, we can't…
Hi Guys, you mention about doctrine migrations being a safer way for renaming the table columns, but how would you make sure that update schema does not break your database? In other words how do you tell update schema not to drop this table because…
Theravadan
Theravadan
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();
Duplicate of https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679
Hello again... // src/Yoda/UserBundle/Doctrine/UserListener.php // ... use Yoda\UserBundle\Entity\User; // ... private function handleEvent(User $user) { $plainPassword = $user->getPlainPassword(); $encoder = $this->container->get('security.encoder_factory')->getEncoder($user); $password = $encoder->encodePassword($plainPassword(), $user->getSalt()); $user->setPassword($password); } Remove brackets after…
Duplicate of: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3757425679
I thought there was already a "Doctrine & the Database Tutorial". Is it an update ?
when i write php app/console doctrine:fixtures:load show me Catchable Fatal Error: Argument 1 passed to Userlistener::_construct
squall2501
squall2501
Read Full Comment
46 lines | app/config/services.yml
// ... lines 1 - 5
services:
// ... lines 7 - 30
AppBundle\Service\MarkdownTransformer:
arguments:
$cache: '@doctrine_cache.providers.my_markdown_cache'
// ... lines 34 - 46
See Code Block in Script
46 lines | app/config/services.yml
// ... lines 1 - 5
services:
// ... lines 7 - 30
AppBundle\Service\MarkdownTransformer:
arguments:
$cacheDriver: '@doctrine_cache.providers.my_markdown_cache'
// ... lines 34 - 46
See Code Block in Script
47 lines | ansible/deploy/after-symlink-shared.yml
// ... lines 1 - 22
- name: Run migrations
command: '{{ release_console_path }} doctrine:migrations:migrate --no-interaction --env=prod'
register: run_migrations_output
// ... lines 26 - 47
See Code Block in Script
47 lines | ansible/deploy/after-symlink-shared.yml
// ... lines 1 - 22
- name: Run migrations
command: '{{ release_console_path }} doctrine:migrations:migrate --no-interaction --env=prod'
register: run_migrations_output
changed_when: not run_migrations_output.stdout|search('No migrations to execute')
// ... lines 27 - 47
See Code Block in Script
56 lines | config/services.yaml
// ... lines 1 - 17
App\:
// ... lines 19 - 23
App\Controller\:
// ... lines 25 - 33
App\Service\MarkdownTransformer:
// ... lines 35 - 37
App\Doctrine\HashPasswordListener:
// ... lines 39 - 40
App\Form\TypeExtension\HelpFormExtension:
// ... lines 42 - 44
App\Service\MessageManager:
// ... lines 46 - 49
App\EventSubscriber\AddNiceHeaderEventSubscriber:
// ... lines 51 - 56
See Code Block in Script
72 lines | app/config/config.yml
// ... lines 1 - 7
parameters:
locale: en
cache_type: file_system
// ... lines 11 - 65
doctrine_cache:
providers:
my_markdown_cache:
type: %cache_type%
file_system:
directory: %kernel.cache_dir%/markdown_cache
See Code Block in Script