public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) { $pos = CourseRegulationPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); return $this->setByPosition($pos, $value); }