Category: "Doctrine ORM"

Symfony 4 - Multiple DataFixtures files

I recently upgraded a Symfony 3.3 application to Symfony 4 Part of the upgrade was loading the DataFixtures. Symfony 4 recommends you put all your DataFixtures in a single file. I'll get around to that later. However, due to the way I organized the file… more »

Upgrading from Symfony 3 to 4 - JSON Database Content

My latest adventure has been to upgrade a web application from Symfony 3.3 to 4. All the pages load and I am starting to test execution. This error came up and I scoured the code for instances of AppBundle [image:10] Then I checked the database. One of… more »

Symfony doctrine:query:dql

When developing application that use databases, it is often helpful to run SQL standalone to get the information you need, then integrate it into your code. With Symfony and Doctrine, it is nice to use DQL because it is a nice bridge between the… more »

Zend Framework Admin Form extension of Zend_Dojo_Form

The objective of this class is to provide a foundation class for admin forms which provides the following: Security - a hash input is used. It must return to the server with the same value sent to the client. Multi-form pages - this class prefixes… more »

AES_ENCRYPT with Doctrine ORM

With thanks to the link above, this code snippet delivers the encrypted value of the password from the database. $manager=Doctrine_Manager::getInstance(); $conn=Doctrine_Manager::connection('mysql://user:password@localhost/database','doctrine'); $aP… more »