Skip to content

Handling circular references in complex types #109

Description

@ciscopere

I'm having troubles with the following case:

namespace AppBundle\Entity;

use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;

/**
 * @Soap\Alias("Item")
 */
class Item
{

    /**
     * @Soap\ComplexType("AppBundle\Entity\Item[]")
     */
    protected $items;

    /**
     * @Soap\ComplexType("string")
     */
    protected $name;

What i need to get is a tree of complextype items but i'm getting a circular reference error when using the annotation @soap\ComplexType("AppBundle\Entity\Item[]").

Any idea of how can i deal with this situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions