Allow to remove all fields of a form except a given list:
public function unsetAllExcept($fields = array()) { foreach($this->getObject()->toArray(BasePeer::TYPE_FIELDNAME) as $key => $val) { $tmp[] = strtolower($key); } $tmp = array_diff($tmp, $fields); foreach($tmp as $value) { unset($this[$value]); } }
Remove created_at, updated_at ...
$this->unsetAllExcept(array('comment'));
public function allowExtraFields() { $this->validatorSchema->setOption('allow_extra_fields', true); }
$configuration = ProjectConfiguration::getApplicationConfiguration($arguments['application'], $options['env'], true); sfContext::createInstance($configuration);
deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
$('#oq_module_threshold_type_1').click(function(){ showTypePercent() });
mysqldump -u root -p maBase > maBase_backup.sql
public function getFields() { return array_keys($this->widgetSchema->getFields()); }
$(document).ready(function(){
$('#content').css('border-bottom', '0px');
});
pear install -f symfony/symfony-1.2.4
logs
8607.3 KB