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
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.
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()
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
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
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.
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
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