Skip to content

Commit bd980a2

Browse files
committed
Added ORM support
1 parent 55c1787 commit bd980a2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
DIR_NAME=`dirname $0`
4+
CONSOLE_DIR=$DIR_NAME"/.."
5+
6+
# composer install --dev
7+
php $CONSOLE_DIR"/console" doctrine:database:create --env=orm
8+
php $CONSOLE_DIR"/console" doctrine:schema:create --env=orm
9+
php $CONSOLE_DIR"/console" doctrine:phpcr:repository:init

resources/config/dist/doctrine.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ doctrine:
33
driver: %database_driver%
44
path: %database_path%
55
charset: UTF8
6+
orm:
7+
auto_mapping: true

0 commit comments

Comments
 (0)