Skip to content

Commit ce0e10a

Browse files
author
Dirk Luijk
committed
Added example usage
1 parent 0c8afa0 commit ce0e10a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ $app->register(new DoctrineOrmServiceProvider, array(
145145
"namespace" => "Bat\Entities",
146146
"path" => __DIR__."/src/Bat/Resources/mappings",
147147
),
148+
// As of 1.1, you can also use the simplified
149+
// XML/YAML driver (Symfony2 style)
150+
// Mapping files can be named like Foo.orm.yml
151+
// instead of Baz.Entities.Foo.dcm.yml
152+
array(
153+
"type" => "simple_yml",
154+
"namespace" => "Baz\Entities",
155+
"path" => __DIR__."/src/Bat/Resources/config/doctrine",
156+
),
148157
// Using PSR-0 namespaceish embedded resources
149158
// (requires registering a PSR-0 Resource Locator
150159
// Service Provider)

0 commit comments

Comments
 (0)