Feature #37279
Request PropertyMapping
| Status: | New | Start date: | 2012-05-18 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Property | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: | No | |||
| Votes: | 0 |
Description
atm i have to allow properties this way, right?
$this->arguments['section']->getPropertyMappingConfiguration()->allowCreationForSubProperty('ticketLimit');
$this->arguments['section']->getPropertyMappingConfiguration()->allowModificationForSubProperty('ticketLimit');
$this->arguments['section']->getPropertyMappingConfiguration()->getConfigurationFor('ticketLimit')->allowProperties('dailyLimit');
wouldnt it be easier to do something like this?
$this->arguments->allowProperties(
'this.that'
'this.alsothat'
'another.that.this'
)
$this->arguments->allowCreationOfProperties(
'this.that'
'this.alsothat'
'another.that.this'
)
$this->arguments->allowModificationOfProperties(
'this.that'
'this.alsothat'
'another.that.this'
)