protected function doSave($con = null)
 {
     $values = $this->getValues();
     $optional_career_subject = new CareerSubject();
     $optional_career_subject->setSubjectId($values['subject_id']);
     $optional_career_subject->setIsOption(true);
     $career_subject = CareerSubjectPeer::retrieveByPK($values['career_subject_id']);
     $optional_career_subject->setCareerId($career_subject->getCareerId());
     $optional_career_subject->setYear($career_subject->getYear());
     $optional_career_subject->setSubjectConfigurationId($career_subject->getSubjectConfigurationId());
     $optional_career_subject->setCreditHours($career_subject->getCreditHours());
     $this->getObject()->setCareerSubjectRelatedByOptionalCareerSubjectId($optional_career_subject);
     parent::doSave($con);
     $career_subject->setHasOptions(true);
     $career_subject->save($con);
 }