Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doctrine orm:schema-tool:create
- Creating database schema...
- Database schema created successfully!
- public function getConnection() {
- if ($this->connection === null) {
- $dbname = 'erms_test';
- if (self::$pdo == null) {
- $user = 'root';
- $password = 'password';
- self::$pdo = new PDO("sqlite:dbname=$dbname;host=localhost", $user, $password);
- }
- $this->connection = $this->createDefaultDBConnection(self::$pdo, $dbname);
- }
- return $this->connection;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement