-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed merging metadata from IEntityProvider with config [Fixes #299]
- Loading branch information
1 parent
aea71c4
commit 530662e
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/KdybyTests/Doctrine/config/entity-provider-merging.neon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kdyby.doctrine: | ||
driver: pdo_sqlite | ||
memory: true | ||
metadata: | ||
KdybyTests\Doctrine: annotations(%appDir%/Doctrine/models) | ||
targetEntityMappings: | ||
KdybyTests\Doctrine\ICmsAddress: KdybyTests\Doctrine\CmsAddress | ||
|
||
extensions: | ||
- KdybyTests\Doctrine\Models2\Models2Extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace KdybyTests\Doctrine\Models2; | ||
|
||
use Kdyby\Doctrine\DI\IEntityProvider; | ||
use Nette\DI\CompilerExtension; | ||
|
||
class Models2Extension extends CompilerExtension implements IEntityProvider | ||
{ | ||
|
||
public function getEntityMappings() | ||
{ | ||
return [ | ||
__NAMESPACE__ => __DIR__, | ||
]; | ||
} | ||
|
||
} |