/**
  * @see sfTask
  */
 protected function execute($arguments = array(), $options = array())
 {
     $buildSql = new sfPropelBuildSqlDiffTask($this->dispatcher, $this->formatter);
     $buildSql->setCommandApplication($this->commandApplication);
     $buildSql->execute($arguments, $options);
     $filename = sfConfig::get('sf_data_dir') . '/sql/diff.sql';
     $this->logSection("propel-diff", "executing file {$filename}");
     $i = new dbInfo();
     $i->executeSql(file_get_contents($filename));
 }
 /**
  * @see sfTask
  */
 protected function execute($arguments = array(), $options = array())
 {
     $optionsCmdline = array();
     if ($options['application']) {
         $optionsCmdline[] = '--application=' . $options['application'];
     }
     if ($options['env']) {
         $optionsCmdline[] = '--env=' . $options['env'];
     }
     if ($options['connection']) {
         $optionsCmdline[] = '--connection=' . $options['connection'];
     }
     $buildSql = new sfPropelBuildSqlDiffTask($this->dispatcher, $this->formatter);
     $buildSql->setCommandApplication($this->commandApplication);
     $buildSql->run(array(), $optionsCmdline);
     $filename = sfConfig::get('sf_data_dir') . "/sql/{$options['connection']}.diff.sql";
     $this->logSection("sql-diff", "executing file {$filename}");
     $i = new dbInfo();
     $i->executeSql(file_get_contents($filename), Propel::getConnection($options['connection']));
 }