Permalink
Browse files

Updated App setup, to hopefully fix initial sqlite install (database …

…not found).
  • Loading branch information...
1 parent 7b79c8e commit 41c0a8b9fe8691862c537287692d0a6800b360a2 @balupton balupton committed Jan 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Bal/App.php
View
4 lib/Bal/App.php
@@ -80,6 +80,7 @@ protected function bootstrap ( ) {
public function setup ( ) {
# Prepare
$Application = $this->getApplication();
+ $Bootstrapr = Bootstrapr::getInstance();
$this->bootstrap();
# Prepare Config
@@ -317,6 +318,7 @@ public function setup ( ) {
# Doctrine
+ $data_dsn = delve($applicationConfig,'data.connection_string',false);
$data_compile_generate = delve($applicationConfig,'data.compile.generate',false);
$data_fixtures_path = delve($applicationConfig,'data.fixtures_path');
$data_dump_path = delve($applicationConfig,'data.dump_path');
@@ -430,7 +432,9 @@ public function setup ( ) {
echo '- [data-create] -'."\n";
# Reset Database
echo 'Doctrine: Create Database...'."\n";
+ $Bootstrapr->ensureDsnPath($data_dsn);
Doctrine_Core::dropDatabases();
+ $Bootstrapr->ensureDsnPath($data_dsn);
Doctrine_Core::createDatabases();
}

0 comments on commit 41c0a8b

Please sign in to comment.