New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Entity Mapping trait #34
Conversation
Today I will send rebase ;) |
How is it working? I think it can't. |
@f3l1x After rebase (+- 19-20h) trait will work in this way:
you will use: class ForumExtension extends CompilerExtension
{
use EntityMapping;
public function loadConfiguration(): void
{
...
$this->setEntityMappings([
'Forum' => __DIR__ . '/../Entity',
]);
}
} I have it in my project and work it ;) |
src/DI/EntityMapping.php
Outdated
use Nette\DI\ContainerBuilder; | ||
use Nette\DI\MissingServiceException; | ||
|
||
trait EntityMapping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix with T please.
src/DI/EntityMapping.php
Outdated
|
||
/** | ||
* @param string[] $mapping | ||
* @throws MissingServiceException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop throws
Added example EntityMapping
@f3l1x thanks, resolved CR ;) |
@f3l1x thanks, I will look to qa (new PR) |
Hi, @f3l1x any ETA when this finds its way into stable version? |
I hope soon. Stay tuned. |
resolve #33
alternative for IEntityProvider.