[symfony-users] Re: doctrine autoloading pb while deploying on debian lenny

2010-04-01 Thread Mikael
THANKS !!!

Mikael

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: doctrine autoloading pb while deploying on debian lenny

2010-04-01 Thread john
This is a common problem when developing on Windows and deploying to
unix. Windows is case-insensitive when it comes to filepaths while
unix is not.

Search your schema files for "TimeStampable" and replace it with
"Timestampable".


On Apr 1, 2:39 pm, Mikael  wrote:
> And with xdebug enabled, I get this
>
> /var/www/pi2010$ ./symfony import:pays
>
> Fatal error: Class 'Doctrine_Template_TimeStampable' not found in /var/
> www/svnexp/pi2010/trunk-r269/lib/model/doctrine/base/
> BasePays.class.php on line 66
>
> Call Stack:
>     0.0002      53584   1. {main}() /var/www/svnexp/pi2010/trunk-r269/
> symfony:0
>     0.0030     318300   2. include('/opt/symfony-1.4.3/lib/command/
> cli.php') /var/www/svnexp/pi2010/trunk-r269/symfony:14
>     0.1279    7095404   3. sfSymfonyCommandApplication->run() /opt/
> symfony-1.4.3/lib/command/cli.php:20
>     0.1311    7123756   4. sfTask->runFromCLI() /opt/symfony-1.4.3/lib/
> command/sfSymfonyCommandApplication.class.php:76
>     0.1312    7123756   5. sfBaseTask->doRun() /opt/symfony-1.4.3/lib/
> task/sfTask.class.php:97
>     0.1815    7196512   6. importPaysTask->execute() /opt/
> symfony-1.4.3/lib/task/sfBaseTask.class.php:68
>     0.2107    8963272   7. Doctrine_Record->__construct() /var/www/
> svnexp/pi2010/trunk-r269/lib/task/importPaysTask.class.php:46
>     0.2107    8963664   8. Doctrine_Core::getTable() /opt/
> symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
> Doctrine/Record.php:219
>     0.2107    8964032   9. Doctrine_Connection->getTable() /opt/
> symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
> Doctrine/Core.php:1080
>     0.2163    9594392  10. Doctrine_Table->__construct() /opt/
> symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
> Doctrine/Connection.php:1123
>     0.2183    9732592  11. BasePays->setUp() /opt/symfony-1.4.3/lib/
> plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php:253

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: doctrine autoloading pb while deploying on debian lenny

2010-04-01 Thread Mikael
And with xdebug enabled, I get this


/var/www/pi2010$ ./symfony import:pays

Fatal error: Class 'Doctrine_Template_TimeStampable' not found in /var/
www/svnexp/pi2010/trunk-r269/lib/model/doctrine/base/
BasePays.class.php on line 66

Call Stack:
0.0002  53584   1. {main}() /var/www/svnexp/pi2010/trunk-r269/
symfony:0
0.0030 318300   2. include('/opt/symfony-1.4.3/lib/command/
cli.php') /var/www/svnexp/pi2010/trunk-r269/symfony:14
0.12797095404   3. sfSymfonyCommandApplication->run() /opt/
symfony-1.4.3/lib/command/cli.php:20
0.13117123756   4. sfTask->runFromCLI() /opt/symfony-1.4.3/lib/
command/sfSymfonyCommandApplication.class.php:76
0.13127123756   5. sfBaseTask->doRun() /opt/symfony-1.4.3/lib/
task/sfTask.class.php:97
0.18157196512   6. importPaysTask->execute() /opt/
symfony-1.4.3/lib/task/sfBaseTask.class.php:68
0.21078963272   7. Doctrine_Record->__construct() /var/www/
svnexp/pi2010/trunk-r269/lib/task/importPaysTask.class.php:46
0.21078963664   8. Doctrine_Core::getTable() /opt/
symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
Doctrine/Record.php:219
0.21078964032   9. Doctrine_Connection->getTable() /opt/
symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
Doctrine/Core.php:1080
0.21639594392  10. Doctrine_Table->__construct() /opt/
symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
Doctrine/Connection.php:1123
0.21839732592  11. BasePays->setUp() /opt/symfony-1.4.3/lib/
plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php:253

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: doctrine autoloading pb while deploying on debian lenny

2010-04-01 Thread Mikael
I forgot to mention that the model building operation went fine :

/var/www/pi2010$ ./symfony doctrine:build --all --and-load --no-
confirmation

>> doctrine  Dropping "doctrine" database
>> doctrine  Creating "dev" environment "doctrine" database
>> doctrine  generating model classes
>> file+ /tmp/doctrine_schema_38623.yml
...
...
>> doctrine  Generated SQL successfully for models
>> doctrine  creating tables
>> doctrine  created tables successfully
>> doctrine  Loading data fixtures from 
>> "/var/www/svnexp/pi2010/trunk-r269/data/fixtures"
>> doctrine  Loading data fixtures from 
>> "/var/www/svnexp/pi2010/trunk-r269/plugins/sfDoctrineGuardPlugin/data/fixtures"
>> doctrine  Data was successfully loaded

The line 66 of BasePays.class.php has this :

   $timestampable0 = new Doctrine_Template_TimeStampable();
   $this->actAs($timestampable0);

The ImportPaysTask does this :

   $databaseManager = new sfDatabaseManager($this->configuration);
$connection = $databaseManager-
>getDatabase($options['connection'])->getConnection();

$row = 1;
if (($handle = fopen( sfConfig::get("sf_data_dir") . "/
import/pays.csv", "r")) !== FALSE)
{
$doctrine = $connection;
$doctrine->query('TRUNCATE TABLE pays');
$doctrine->query('TRUNCATE TABLE
nationalite');
unset($doctrine);

while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
$row++;
$pays = new Pays();
$pays->setCode(trim($data[0]));
$pays->setNom(trim($data[1]));
$pays->save();

Regards

Mikael

-- 
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

To unsubscribe, reply using "remove me" as the subject.