Feature #42539

Allow Object.yaml property value to be also an array

Added by Adrian Föder almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Object
Start date:
2012-10-31
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Yes
Complexity:
easy

Description

It would be nice to be allowed setting also arrays as values for Object properties.

Use case: consider the following "foreign" repository:

/**
 * A repository for Comments
 *
 * @Flow\Scope("singleton")
 */
class CommentRepository extends \TYPO3\Flow\Persistence\Repository {

    /**
     * @var array
     */
    protected $defaultOrderings = array('creationDate' => \TYPO3\Flow\Persistence\QueryInterface::ORDER_DESCENDING); 

I'd like to modify this from my application, using Objects.yaml:

TYPO3\Comments\Domain\Repository\CommentRepository:
  properties:
    defaultOrderings:
      value:
        creationDate: 'ASC'

This currently doesn't work because the handling (in DependencyInjection\ProxyClassBuilder) does only expect plain values.


Related issues

Related to TYPO3.Comments - Support #34765: Set the default orderings from outsideClosed2012-03-12

Actions

Also available in: Atom PDF