Hi,

I have this query inside a method:


    public static function pincopalla(){

         $con = Propel::getConnection(SediI18nPeer::DATABASE_NAME);

         $sql = "select * from sedii18n where culture = :country
         UNION
         select * from sedii18n where culture <> :country";


         $stmt = $con->prepare($sql);

        $result = $stmt->execute(array(':country' => 'eu'));

        return $result;

}

When i call the method i get the symfony error below tough
cashgold_new.sedii18n exists..:

500 | Internal Server Error | PDOException SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'cashgold_new.sedii18n' doesn't exist stack trace

   - at **()
   in *
   
SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/util/DebugPDOStatement.php
   * line 99 ...
   1.     public function execute($input_parameters = null)
         2.     {
         3.         $debug    = $this->pdo->getDebugSnapshot();
         4.         $return    = parent::execute($input_parameters);
         5.
         6.         $sql = $this->getExecutedQueryString();
         7.         $this->pdo->log($sql, null, __METHOD__, $debug);

To debug it i have changed the class name of the argument of
getConnection(), expecting the same error, but...the error is not the
same!..:


Fatal error: Class 'SediBlaBlaI18nPeer' not found in
/home/javier/Aptana_Studio_Workspace/cashgold/lib/model/SediI18nPeer.php on
line *25*


Any idea whats the problem?

Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to