【发布时间】:2011-08-24 15:26:06
【问题描述】:
我需要在模型之后生成的表单中使用 sfValidatorDoctrineChoice 的提交值。
我尝试了$this->getValue('country'),但它不起作用:
$query2 = Doctrine_Core::getTable('sate')->createQuery('s')
->select('s.id')
->where('s.idcountry = ?', $this->getValue('country'));
我怎样才能得到那个参数?
【问题讨论】:
标签: php symfony1 symfony-1.4