forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/zendframework#7108-form-annotation-options-merge…
…-support' Close zendframework#7108
- Loading branch information
Showing
3 changed files
with
85 additions
and
7 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
32 changes: 32 additions & 0 deletions
32
tests/ZendTest/Form/TestAsset/Annotation/EntityUsingComposedObjectAndOptions.php
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,32 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace ZendTest\Form\TestAsset\Annotation; | ||
|
||
use Zend\Form\Annotation; | ||
|
||
/** | ||
* @Annotation\Name("hierarchical") | ||
*/ | ||
class EntityUsingComposedObjectAndOptions | ||
{ | ||
/** | ||
* @Annotation\Name("child") | ||
* @Annotation\Options({"label": "My label"}) | ||
* @Annotation\ComposedObject({"target_object":"ZendTest\Form\TestAsset\Annotation\Entity", "is_collection":"true"}) | ||
*/ | ||
public $child; | ||
|
||
/** | ||
* @Annotation\Name("childTheSecond") | ||
* @Annotation\ComposedObject({"target_object":"ZendTest\Form\TestAsset\Annotation\Entity", "is_collection":"true"}) | ||
* @Annotation\Options({"label": "My label"}) | ||
*/ | ||
public $childTheSecond; | ||
} |