Skip to content
Advertisement

Tag: doctrine-orm

No mapped Doctrine ORM entities according to the current configuration

I’ve got a dubious issue. I have a set of existing annotated Doctrine entities which have been successfully used in a Symfony2/Doctrine2 project. However, I’m currently isolating some core functionality of this project into it’s own web framework independent library and I can’t seem to get the entities to function properly. At the moment my major concern is the fact

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” of the Environment, so when I go to generate my tables,

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.php): failed to open stream how to get composer’s autoload.php? why composer does not generate it? how to use doctrine

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 which suggests registering the ObjectHydrator under a new key and specifying the

Doctrine – Add default time stamp to entity like NOW()

Following the Doctrine guidelines I understand how to set a default value for an Entity, but what if I wanted a date/time stamp? http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/faq.html My problem is my database has a default of NOW() on a field but when I use Doctrine to insert a record the values are null or blank but the rest of the insert happened. Also

Advertisement