[symfony-users] Re: Generate proxies in Test mode ?

2011-05-31 Thread spike3111
I don't think to see this command, thank you! It's works! On 31 mai, 05:46, [BLZ]梁振警 liangzhenj...@gmail.com wrote: i don't know why it does not generate automatically, but you can generate it yourself by run this command: app/console doctrine:generate:proxies -e test 2011/5/31 spike3111

[symfony-users] Re: Generate proxies in Test mode ?

2011-05-30 Thread spike3111
No ideas? Someone writing tests and have proxies generated in cache? On 29 mai, 15:35, spike3111 gilles.gauthie...@gmail.com wrote: Hello, I try to know how to generate proxies in test mode ? In dev and prod, proxies are generated in the cache folder. In config.yml I have this option

[symfony-users] Re: [Doctrine2] Problem with UML Composition.

2011-05-02 Thread spike3111
Look at this link http://www.doctrine-project.org/docs/orm/2.0/en/reference/association-mapping.html Bonne continuation -- 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

[symfony-users] [sf2] access_denied_url doesn't want to work ? (pr12)

2011-04-28 Thread spike3111
Hello, I try to use access_denied_url, normally would call my Route, my controller and my view, but displays only the basic error page. #security.yml firewalls: main: pattern: .* anonymous: true access_denied_url: /hoho/error403 #routing.yml hoho:

[symfony-users] Re: Forms and Entity Annotation Validation...

2011-04-12 Thread spike3111
In your code you use @validation, but now it's @assert Example from http://symfony.com/doc/2.0/book/validation.html // Acme/BlogBundle/Author.php class Author { /** * @assert:Choice({male, female}) */ protected $gender; } On 12 avr, 12:45, kassel alvaro.tou...@gmail.com wrote:

[symfony-users] [Symfony2][Form] How to retrieve the file extension that was uploaded?

2011-04-04 Thread spike3111
Hello, I have a form to send pictures, but when I want to display picture it doesn't work: class PhotosForm extends Form { public function configure() { $this-setDataClass('Nt\\SocialBundle\\Entity\\Photos'); $this-add('nom');

[symfony-users] doctrine:generate:Entities update not possible ?

2011-02-18 Thread spike3111
Hello, I wondered why it was not possible to update a file. dcm.yml example, in which we modify the schema for any reason, and we can not use the command update for the entity that has existed with Doctrine2? $ php doctrine orm:generate-entities --update-entities $ php doctrine

[symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-19 Thread spike3111
Ok Tim, your solution works, the documentation said to use getService. I looked again the documentation on the site of symfony, and it just changed in my opinion, and now the code is just $em = $this['doctrine.orm.entity_manager']; So what to choose? If the documentation has been updated, so I

[symfony-users] [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread spike3111
I try to set up a simple custom repository, looking at the documentation doctrine2. I first tried the command doctrine:generate:repositories, which does not make mistakes, but that does not work either. So I created a class Entity CustomCategorieRepository ?php namespace

[symfony-users] Re: [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread spike3111
=Application\HelloBundle\Entity\CategorieRepository And control doctrine: generate: repositories works well! it can be used to other ... On 18 sep, 18:28, Richard D Shank deve...@zestic.com wrote: Try capitalizing @entity (@Entity) On 09/18/2010 08:41 AM, spike3111 wrote: I try to set up a simple

[symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread spike3111
You have to look in the cache, the methods generated there. Surely this is getDoctrine_Dbal_DefaultConnectionService() you need. On 18 sep, 19:37, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com wrote: Hi, I'm playing around in the sandbox to get a feel for Symfony2 (I already have Symfony1

[symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread spike3111
://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html That doesn't mention getDoctrine_Dbal_DefaultConnectionService() anywhere. On Sep 18, 7:57 pm, spike3111 gilles.gauthie...@gmail.com wrote: You have to look in the cache, the methods generated there. Surely

[symfony-users] [symfony2-sandbox PR3] missing files for MongoDB

2010-09-17 Thread spike3111
If I created a new instance of the new Symfony Bundle \ Bundle \ DoctrineMongoDBBundle \ DoctrineMongoDBBundle (), and I start the console hello php / console, an error message C: \ Users \ Me \ Documents \ devweb \ sandsf2 hello php / console PHP Fatal error: Class 'Doctrine \ ODM \ MongoDB \

[symfony-users] [Symfony2 - Sandbox PR3] Re: missing files for MongoDB

2010-09-17 Thread spike3111
Yes I have the latest version of the symfony sandbox, PR3, and it does not work. On 17 sep, 11:10, Henrik Bjornskov jegerhen...@gmail.com wrote: have you installed Doctrine ODM MongoDB ? On Sep 17, 9:56 am, spike3111 gilles.gauthie...@gmail.com wrote: If I created a new instance of the new

[symfony-users] [Symfony2, SandBox, PR3] Re: missing files for MongoDB

2010-09-17 Thread spike3111
\Mongo.php on line 46 On 17 sep, 12:21, spike3111 gilles.gauthie...@gmail.com wrote: Yes I have the latest version of the symfony sandbox, PR3, and it does not work. On 17 sep, 11:10, Henrik Bjornskov jegerhen...@gmail.com wrote: have you installed Doctrine ODM MongoDB ? On Sep 17, 9:56 am

[symfony-users] Re: [Symfony2, SandBox, PR3] Re: missing files for MongoDB

2010-09-17 Thread spike3111
my iPhone4 On Sep 17, 2010, at 9:13 PM, spike3111 gilles.gauthie...@gmail.com wrote: I have idea to look for into the cache. I found a method : getDoctrine_Odm_Mongodb_DocumentManagerService() ! Great ! Now i have a new problem when i try to test: config.yml: doctrine_odm.mongodb

[symfony-users] [symfony2-sandbox PR3] doctrine:mapping:import , error runtime

2010-09-14 Thread spike3111
Hello, I test the sandbox PR3, and I wanted to test the command doctrine:mapping:import with a simple database with three tables (categories, articles, members). I have the following exception: [ErrorException] Runtime Notice: Only variables should be passed by reference in C:

[symfony-users] Re: [symfony2-sandbox PR3] doctrine:mapping:import , error runtime

2010-09-14 Thread spike3111
Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 On 9/14/10 11:01 AM, spike3111 wrote: Hello,    I test the sandbox PR3, and I wanted to test the command doctrine:mapping:import with a simple database with three tables

[symfony-users] Re: too many queries with embedded forms

2010-08-19 Thread spike3111
don't burden the group with this) Cheers, Daniel On 18.08.2010, at 16:39, spike3111 wrote: Hello, I use the plugi ahDoctrineEasyEmbeddedRelationsPlugin to embed forms. My schema is basic, I have a pet that may have a type of crying, a type of displacement, a place to live and belong

[symfony-users] Re: too many queries with embedded forms

2010-08-19 Thread spike3111
', 'path' = $this-getObject()-getCanardDirPath(), 'required' = false ))); On 19 août, 09:28, spike3111 gilles.gauthie...@gmail.com wrote: Daniel, Thank for you help, I send you the email. And here my form: $this-setWidget('intitule', new

[symfony-users] too many queries with embedded forms

2010-08-18 Thread spike3111
Hello, I use the plugi ahDoctrineEasyEmbeddedRelationsPlugin to embed forms. My schema is basic, I have a pet that may have a type of crying, a type of displacement, a place to live and belong to a group. So a four relationships one to many. I wanted my embed forms of animals in the middle of