From 762ca4d7eb99d2a467259bcb5fc207ad87d1b4d3 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Mon, 5 Aug 2013 09:52:54 +0200 Subject: [PATCH] [SoapBundle] [Doc] Updated documentation to Alias documentation --- .../doc/soapserver/tutorial/complex_type.rst | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst index 034d762..0c8b84a 100644 --- a/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst +++ b/src/BeSimple/SoapBundle/Resources/doc/soapserver/tutorial/complex_type.rst @@ -51,8 +51,16 @@ You can expose only the properties (public, protected or private) of a complex t use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; + /** + * @Soap\Alias("User") + */ class User { + /** + * @Soap\ComplexType("int", nillable=true) + */ + private $id; + /** * @Soap\ComplexType("string") */ @@ -63,11 +71,6 @@ You can expose only the properties (public, protected or private) of a complex t */ public $lastname; - /** - * @Soap\ComplexType("int", nillable=true) - */ - private $id; - /** * @Soap\ComplexType("string") */ @@ -135,3 +138,9 @@ ComplexType `ComplexType` accepts the following options: * nillable: To specify that the value can be null + +Alias +----- + +If you can Alias annotation, the name of your entity will be renamed in the WSDL generated. +With alias the name in WSDL will `User` instead of `Acme.DemoBundle.Entity.User` (name without Alias annotation).