Feature #37279

Request PropertyMapping

Added by Carsten Bleicker about 3 years ago.

Status:New Start date:2012-05-18
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Property
Target version:-
PHP Version: Complexity:
Has patch:No

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'
)

Also available in: Atom PDF