Maria
unread,Jun 7, 2010, 1:47:40 PM6/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Hola, tengo la excepción que muestro más abajo. Alguien sabe si esta
excepcion se debe al acceso a la base de datos o alguna cuestión con
la configuración del MySQL? Muchas gracias!
stack trace
at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\vendor
\propel\Propel.php line 610 ...
$con = new $classname($dsn, $user, $password,
$driver_options);
$con->setAttribute(PDO::ATTR_ERRMODE,
PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
throw new PropelException("Unable to open PDO connection",
$e);
}
// load any connection options from the config fileat
Propel::initConnection(array('dsn' =>
'mysql:host=localhost;dbname=basedatos', 'user' => 'usuario',
'password' => 'usuario', 'classname' => 'DebugPDO',
array('ATTR_PERSISTENT' => '1'), array(array('value' => 'utf8'),
array())), 'propel')in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins
\sfPropelPlugin\lib\vendor\propel\Propel.php line
523 ... throw new PropelException('No connection
information in your runtime configuration file for datasource ['.
$name.']');
}
// initialize master connection
$con = Propel::initConnection($conparams, $name);
self::$connectionMap[$name]['master'] = $con;
}
at Propel::getConnection('propel', 'write')in SF_ROOT_DIR\lib\vendor
\symfony\lib\plugins\sfPropelPlugin\lib\vendor\propel\Propel.php line
538 ...
if (empty($slaveconfigs)) { // no slaves configured
for this datasource
self::$connectionMap[$name]['slave'] = false;
return self::getConnection($name,
Propel::CONNECTION_WRITE); // Recurse to get the WRITE connection
} else { // Initialize a new slave
if (isset($slaveconfigs['connection']['dsn']))
{ // only one slave connection configured
$conparams = $slaveconfigs['connection'];at
Propel::getConnection('propel', 'read')in SF_ROOT_DIR\lib\model\om
\BaseProductoPeer.php line 350 ...
if ($con === null) {
$con = Propel::getConnection(ProductoPeer::DATABASE_NAME,
Propel::CONNECTION_READ);
}
if (!$criteria->hasSelectClause()) {