Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…not found).
  • Loading branch information...
commit 41c0a8b9fe8691862c537287692d0a6800b360a2 1 parent 7b79c8e
Benjamin Lupton balupton authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Bal/App.php
4 lib/Bal/App.php
View
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.