persist() and flush() – Symfony

Call $entityManager->persist() and pass the object to save. And then $entityManager->flush(). use Doctrine\ORM\EntityManagerInterface; class QuestionController extends AbstractController { public function new(EntityManagerInterface $entityManager) { $entityManager->persist($question); $entityManager->flush(); } } Yes, you need both lines. The persist() call simply says: Hey Doctrine! Please be “aware” of this Question object. The persist line does not make any queries. The INSERT query happens when we call flush(). The flush() method says: Yo Doctrine! Please look at all of the objects that you are “aware” of and make …

Docusign embedded integration

DocuSign provides a suite of services designed to help business owners collect electronic signatures and manage digital transactions. With DocuSign, you can send online documents to people who need to sign them, and then collect and manage those signatures. DocuSign provides RESTful API to integrate to your project, using API, you can send transactional documents and manage …

Phalcon – A full-stack PHP framework delivered as a C-extension

Phalcon is an open source full stack framework for PHP, written as a C-extension. Phalcon is optimized for high performance. Its unique architecture allows the framework to always be memory resident, offering its functionality whenever it’s needed, without expensive file stats and file reads that traditional PHP frameworks employ. Developers do not need to know …

Laradock and Xdebug

Mostly we use laradock or homested for laravel projects. But it has some problem for implementation of xdebug. xdebug is powerful tool to speed up development. So, most developers want to enable xdebug on laradock. Actually laradock provides xdebug option. but it is disable by default. We can just enable the option. WORKSPACE_INSTAL_WORKSPACE_SSH=true WORKSPACE_INSTALL_XDEBUG=TRUE PHP_FPM_INSTALL_XDEBUG=TRUE …

Debug Errors in WordPress

In order to fix backend errors in wordpress, we need to track those issues in somewhere. There is an option to implement this functionality in wordpress, but we need to setup some configuration for it. Please add the following configuration setting in wp-config.php when you need to track the backend errors in wordpress. define(‘WP_DEBUG’, true);define(‘WP_DEBUG_DISPLAY’, …