Re: [symfony-users] Question with form

2010-10-19 Thread Pavel Pecheny
In your yourForm.class.php add class yourForm extends BaseyourForm { public function configure() { $this->setWidget('fieldname' , new sfWidgetFormInputText()); $this->setValidator('stuff_list' , new sfValidatorString(array('max_length' => 255))); } 2010/10/19 Martin Ibarra Cervan

[symfony-users] Blob __toString problem

2010-10-18 Thread Pavel Pecheny
Hello, everyone i have an error: "Unable to escape value "NULL". when i retreiving blob data feild $table1s->getDescription();... my schema.yml table1: columns: name: type: string description: type: blob Yesterday it worked fine. i use symfony 1.4.8.

Re: [symfony-users] Re: Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-18 Thread Pavel Pecheny
Sorry for my late answer Solution: add to my /lib/form/doctrine/myclassFrom.class.php $this->widgetSchema['contractor_id ']->setOption('table_method','getContractorByCredentials'); and to /lib/model/doctrine/contractorTable.class.php for example public function getContractorByCredentials()

Re: [symfony-users] Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-04 Thread Pavel Pecheny
Problem solved) 2010/10/4 Pavel Pecheny > I have defaulf form configuration > .. > 'contractor_id' => new sfWidgetFormDoctrineChoice(array('model' => > $this->getRelatedModelName('contractor'), 'add_empty' => false)), &g

[symfony-users] Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-04 Thread Pavel Pecheny
I have defaulf form configuration .. 'contractor_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('contractor'), 'add_empty' => false)), . but the query must vary depending on credentials for example: "where contractor_id = 3" what option should I use for

[symfony-users] Distribution of rights in Symfony

2010-09-17 Thread Pavel Pecheny
Previously I ignored the question of distribution of rights in Symfony (Symfony 14.4. Doctrine) when there was a clear difference between the frontend and the backend Now I have a problem to solve: 1. there is one appliaction and depending on the credentials users have different access modules; 2.

Re: [symfony-users] Can't set Attribute when set credentials

2010-09-16 Thread Pavel Pecheny
Thanks! i'll try 2010/9/16 Julian > hi > > when i need add a credential an user. > > i use > > $this->getUser()->addCredential('credential'); > > before $this->getUser()->setAuthenticated(true); > > and works for me, if change the c

[symfony-users] Can't set Attribute when set credentials

2010-09-16 Thread Pavel Pecheny
Anybody help! i cant $this->getUser()->setAttribute($param, $key); when i've set credentials for this user! without credentials works good! -- 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 subs