Issue 30 in addendum: MultiValueAnnotation array

18 views
Skip to first unread message

adde...@googlecode.com

unread,
Jun 30, 2011, 3:58:13 AM6/30/11
to addendum...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 30 by briankch...@gmail.com: MultiValueAnnotation array
http://code.google.com/p/addendum/issues/detail?id=30

What steps will reproduce the problem?
1. @Data(type="array", columns = {1 = "elm1", 2 = "elm2", 3 = "elm3})
2. store the annotation in a variable $f
3. run var_dump($f->getAllAnnotations()).

What is the expected output?
$data["type"] => "array",
$data["columns"] => array(1 => "elm1", 2 => "elm2", 3 => "elm3")

What do you see instead?
$data["type"] => "array",
$data["columns"] => array(0 => "elm1", 1 => "elm2", 2 => "elm3")

What version of the product are you using? On what operating system?
I just downloaded the version from today, I'm running Ubuntu 11.04

Please provide any additional information below.
However if I only have one element in the columns array, I get the correct
result:
$data["type"] => "array",
$data["columns"] => array(1 => "elm1")

But as soon I add one more element, I cannot controll numeric keys anymore,
if I use strings it works fine as well.


Reply all
Reply to author
Forward
0 new messages