1000 search results

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
80 lines | app/config/config.yml
// ... lines 1 - 7
parameters:
// ... line 9
cache_type: file_system
// ... lines 11 - 73
doctrine_cache:
providers:
my_markdown_cache:
type: %cache_type%
// ... lines 78 - 80
See Code Block in Script
// ... lines 1 - 6
class BaseController extends Controller
{
/**
* @return \Doctrine\Common\Persistence\ObjectManager|object
*/
protected function getEm()
{
$em = $this->getDoctrine()->getManager();
return $em;
}
}
See Code Block in Script
// ... lines 1 - 6
class BaseController extends Controller
{
/**
* @return \Doctrine\Common\Persistence\ObjectManager|object
*/
protected function getEntityManager()
{
$em = $this->getDoctrine()->getManager();
return $em;
}
}
See Code Block in Script
87 lines | features/bootstrap/FeatureContext.php
// ... lines 1 - 51
$em = self::$container->get('doctrine')->getManager();
// ... lines 53 - 87
See Code Block in Script