[symfony-users] missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Hi all, Here is my problem : I tryied to display data with the getRepository()-findAll function in SYmfony 2. My entities are displayed, but the first occurence is missing. For example I want to display movie's categories from my database which are COMEDY, HORROR,and ROMANCE, but the

[symfony-users] Re : missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Sorry, I've founded the solution. It came from the accents on my e characters. ( I'm french ) But if someone can told me how I can fix it, it would be nice ;) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] javascript/jquery form in Symfony 2

2011-06-20 Thread Jérémy Simonklein
Hi all, I've a little bit difficult problem... I would want create a form, thanks to a MyentityType.php , but who can render a JDialog modal form in it, to add some embedded entities dynamically, like on this page http://jqueryui.com/demos/dialog/#modal-formbut in a form. I'm working on it

Re : Re: [symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-15 Thread Jérémy Simonklein
Thank you for your responses. I use the annotation method of Doctrine 2 for my entities. I've searched a little on the doctrine 2 documentation and the Single Table Inheritance is perfect in my case ^^ Thank you yet ;) -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-14 Thread Jérémy Simonklein
Hi all, I would want to create 2 different classes GT and FT from a parent class T. I want GT and FT to have same attributes thant T, but FT and GT should have two additionnal different attributes. How can I do it ? I've searched for doctrine inheritance but nothing about it for Symphony

[symfony-users] Problem with doctrine:generate:entities

2011-06-08 Thread Jérémy Simonklein
Hi, Here is my problem :* *- I've generated entities classes and their methods with doctrine:generate:entity and doctrine:generate:entities in my Symfony 2 application. - I've generated the schema with doctrine:schema:create. - I've made some modification, adding methods and associations

[symfony-users] Re : Problem with doctrine:generate:entities

2011-06-08 Thread Jérémy Simonklein
After a day of research, I think well sleeping during all the night can help ^^ I've founded where my problem came from : *A metadata file for Doctrine which stayed in the MyBundle/Resources/config/doctrine/orm/ folder. * *I'**ve r**emoved it, and it works perfectly =D* -- If you want to

Re : Re: [symfony-users] Bundle does not contain any mapped entities.

2011-06-08 Thread Jérémy Simonklein
In fact, it's wrong ^^ doctrine:generate:entities is also used for annotation method. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Re : Symfony2: ChoiceField() and Entities

2011-06-07 Thread Jérémy Simonklein
Hi Dennis. First I've the same problem than yours for the Object class ... could not be converted to string and I don't arrive to solve it ^^ Secondly, for the association beetween your host entity and your Systems is done by Doctrine, in Symfony 2. If you've generated your entities with

[symfony-users] Re : Symfony2: ChoiceField() and Entities

2011-06-07 Thread Jérémy Simonklein
For the Object of class XxX could not be converted to string, I solved it : If you want to display your entities in a field, you've to implement a method __toString() in your class, that returns a string, for example the name of your host or your system. -- If you want to report a