I’m using the Symfony2 Form Builder to make a form. All is working well, but the performance is terrible. A simple form (just a couple of text fields) is rendering in about 1000 ms, but with a entity or collection field it’s slowing down to about 7500-10000 ms. I’m using the query_builder (with createQueryBuilder()) option, like this example from the
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
How to select certain fields with mongodb doctrine in symfony2
I want to find some documents from my mongo Database, and I’m using the function : FindBy() unfortunately this function doesn’t have any field selection arguments like native mongodb driver has with the function : find(). Does any one know how to select custom fields in the doctrine of Mongodb ? Thanks Answer You will need to use QueryBuilder with
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
Object-Relational Mapping vs Database Abstraction Layer
I’m using Doctrine which provides both ORM and DBAL. What is difference between them? How should one decide when to use which?
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
XXX is not a valid entity or mapped super class // and config options
I just started to use Doctrine2 and I have an error when I want to persist an entity. Here is my error: ‘Class “Myappappentityuser” is not a valid entity or mapped super class.’ eAccelerator is not installed on my computer. My app (I don’t use Symfony) structure is like that: MyApp app entity core external Doctrine And I initialize Doctrine
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
Default value of Doctrine ORM association
I have the entity (such as below). I want to set some default values while creating. As you can see in __construct, it is easy to set the $name (string), but how can I set the $group? (for example I …