[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]梁振警 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 t

[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 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 for do

[symfony-users] Generate proxies in Test mode ?

2011-05-29 Thread spike3111
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 for doctrine: doctrine: orm: auto_generate_proxy_classes: true auto_mapping: true But nothing happens with Test mode... Tha

[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 Googl

[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 wrote: > Hi, as i undertood

[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'); $thi

[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 orm:generate-entit

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

2010-09-18 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 wil

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

2010-09-18 Thread spike3111
e(); $users = $statement->fetchAll(); On 18 sep, 20:10, Dennis Jacobfeuerborn wrote: > I'm not sure I understand what you are trying to say. I basically try > to get this example > going:http://docs.symfony-reloaded.org/guides/doctrine/dbal/over

[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 wrote: > Hi, > I'm playing around in the sandbox to get a feel for Symfony2 (I > already have Symfony1 experience). After tryin

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

2010-09-18 Thread spike3111
to other ... On 18 sep, 18:28, Richard D Shank wrote: > Try capitalizing @entity (@Entity) > > On 09/18/2010 08:41 AM, spike3111 wrote: > > > I try to set up a simple custom repository, looking at the > > documentation doctrine2. I first tried the command > > doctrin

[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 _em->createQuery('SELECT u FROM Applicati

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

2010-09-17 Thread spike3111
m my iPhone4 > > On Sep 17, 2010, at 9:13 PM, spike3111 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

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

2010-09-17 Thread spike3111
doctrine-mongodb\lib\Doctrine\ODM\MongoDB \Mongo.php on line 46 On 17 sep, 12:21, spike3111 wrote: > Yes I have the latest version of the symfony sandbox, PR3, and it does > not work. > > On 17 sep, 11:10, Henrik Bjornskov wrote: > > > have you installed Doctrine ODM Mong

[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 wrote: > have you installed Doctrine ODM MongoDB ? > > On Sep 17, 9:56 am, spike3111 wrote: > > > If I created a new instance of the new Symfo

[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 \ To

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

2010-09-14 Thread spike3111
ncier > 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:ma

[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: \Users\moi\Docum

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

2010-08-19 Thread spike3111
; => 'Supprimer', 'template' => '%file%%input%%delete% %delete_label%', ))); $this->validatorSchema['photo_delete'] = new sfValidatorPass(); $this->setValidator('photo', new sfValidatorFile(array(

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

2010-08-19 Thread spike3111
must be going wrong. > > > Can you post the content's of your CanardCategorie form's configure() > > method please? And a couple of screenshots showing the admin interface (so > > I can see the embedded forms and what they contain) and the "SQL queries" &g

[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 lif