(on Wednesday, 27 January 2010, 01:47 PM +0000):
<snip>
> Typo : http://framework.zend.com/issues/browse/ZF-8949
> and
> Recursion : http://framework.zend.com/issues/browse/ZF-8948
>
> I'm not convinced that the recursion fix is 100% as ...
No worries -- add the below information to the ticket as well. I think
your fix is in the right direction, but, as you note, may need a more
sophisticated treatment.
Thanks for filing the tickets!
> class SingleEntity{
> /** @var SingleEntity[] */
> public $Entities = array();
>
> /** @return SingleEntity */
> public function SingleEntity(){
> return new SingleEntity();
> }
> }
>
> produces types of ...
>
> <xsd:complexType name="ArrayOfSingleEntity">
> <xsd:complexContent>
> <xsd:restriction base="soap-enc:Array">
> <xsd:attribute ref="soap-enc:arrayType"
> wsdl:arrayType="tns:SingleEntity[]" />
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
>
> <xsd:complexType name="SingleEntity">
> <xsd:all>
> <xsd:element name="Entities" type="tns:SingleEntity[]" />
> </xsd:all>
> </xsd:complexType>
>
> <xsd:complexType name="SingleEntity">
> <xsd:all>
> <xsd:element name="Entities" type="tns:ArrayOfSingleEntity" />
> </xsd:all>
> </xsd:complexType>
>
> and I've no idea if that is valid.
>
> I'm new with this, so please check this.
--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
没有评论:
发表评论