Skip to content

Tag: doctrine-orm

Symfony/Doctrine Rearranging Database Columns

When I go to generate a table using the doctrine:schema:update command line, it appears that Doctrine(or Symfony?) wants to throw in a command that rearranges my columns, putting the keys towards the front it would appear. I was wondering if, and more hopefully, where, I can disable this “feature”…

composer does not generate autoload.php

i install composer for windows using this link http://getcomposer.org/download/ > http://getcomposer.org/Composer-Setup.exe my web server is WAMP php 5.4 with openssl enabled. i created composer.json with this code and run with this code in .php file and i got error Warning: require_once(vendor/autoload.ph…

Loading Doctrine entities in postLoad

I have an entity which implements a postLoad lifecycle event method. This method conditionally updates the entity and attempts to save it. Something along the lines of: However, I’m receiving the following error: It seems I’m unable to save an entity during postLoad. I stumbled across this ticket …