Re: [symfony-users] Re: Symfony2 configuration types - which one to choose?

2011-06-05 Thread Marcelo Prizmic
mix. annotation for entities. 2011/6/3 Dmitry Bykadorov > Thanks, Christophe! > > You're right, PHP configuration I've never using. > > But for my projects I need some code conventions ) E.g. only YAML or > only Annotations. > > Now I'm trying to use XML in my bundles. > > p.s. Can anyone give

Re: [symfony-users] [symfony2] many to one relation in form

2011-06-09 Thread Marcelo Prizmic
2011/6/8 Rigoberto Reyes sv > class ProductType extends AbstractType > { > public function buildForm(FormBuilder $builder, array $options) > { > $builder->add('name'); > $builder->add('price','money',array('currency'=>'EUR')) > $builder->add('description'); > $builder-

Re: [symfony-users] Re: datetime widget single_text format

2011-06-17 Thread Marcelo Prizmic
I use $builder->add('fecha_creacion', 'birthday', array('widget' => 'choice', 'pattern'=>'dd/MM/', 'format'=>3)); but you have to fix symfony/component/form/extension/core/type/datetype.php in line 96 intead of $pattern = $f

Re: [symfony-users] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-21 Thread Marcelo Prizmic
Hi Oscar Could you post some code about how to use per or post events? Thanks Marcelo 2011/6/20 oscar balladares > Hi everybody!. > > I'm using Yaml configuration for doctrine metadata. > > All others events (prePersist, postPersist, preRemove, postRemove) are > working properly, but not the pr

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-22 Thread Marcelo Prizmic
+1 split 2011/6/21 Jeremiah Dodds > > > On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova wrote: > >> splitting is counterproductive, we can always hit delete >> I myself hit a ton of deletes even with sf2 and I am for sf2, so i >> think people is having too thin of a skin. > > > If you think the

Re: [symfony-users] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-22 Thread Marcelo Prizmic
ut preUpdate nor postUpdate; > If I would have misstyped prePersist: [ uploadFil*eIMisstypedThis* ] > the framework will thrown an exception telling me that such method doesn't > exist in the entity class; if I do the same for preUpdate, or postUpdate, > it will be ignored, like it doesn