/**
  * clear the properties of the stored schema
  *
  * @return integer
  *
  * @param \Connection $con [optional]
  *
  */
 public function save($con = null)
 {
     $arr = explode("/", self::getUri());
     $id = array_pop($arr);
     if (is_numeric($id)) {
         $schema = self::getSchema();
         if ($schema->getLastUriId() != $id) {
             $schema->setLastUriId($id);
             $schema->save();
         }
     }
     $affectedRows = parent::save($con);
     if (sfcontext::hasInstance()) {
         $schema = sfContext::getInstance()->getUser()->getCurrentSchema();
         if ($schema) {
             /** @var Schema * */
             $schema->clearProperties();
             $schema->getSchemaPropertys();
         }
     }
     return $affectedRows;
 }