Hi all,
Ran into an error while following Jobeet Tutorial - Doctrine path Day #9.
When I tried to load data into my test database using php symfony
test:unit JobeetJob, it returns this error message:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at'
in 'field list'
It seems that my bootstrap (data loading part) failed, because column
'created_at' does not exist in my model, which is correct since the
created_at and updated_at is provided by
Doctrine_Template_Timestampable. Trying to just call my
test/bootstrap/Doctrine.php file resulting in the same error.
Sounds funny, since my php symfony doctrine:data-load doing just
fine, and I'm using the same fixtures data (just copied it from my
data/fixtures to test/fixtures)
Anybody can shed some light on this?
My test/bootstrap/Doctrine.php:
--
?php
// test/bootstrap/Doctrine.php
include(dirname(__FILE__).'/unit.php');
$configuration = ProjectConfiguration::getApplicationConfiguration(
'frontend', 'test', true);
new sfDatabaseManager($configuration);
Doctrine::loadData(sfConfig::get('sf_test_dir').'/fixtures');
--
TIA
OJ
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---