Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. doctrine orm:schema-tool:create
  2. Creating database schema...
  3. Database schema created successfully!
  4.  
  5. public function getConnection() {
  6. if ($this->connection === null) {
  7. $dbname = 'erms_test';
  8. if (self::$pdo == null) {
  9. $user = 'root';
  10. $password = 'password';
  11. self::$pdo = new PDO("sqlite:dbname=$dbname;host=localhost", $user, $password);
  12. }
  13. $this->connection = $this->createDefaultDBConnection(self::$pdo, $dbname);
  14. }
  15. return $this->connection;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement