[SoapBundle] [Doc] Updated documentation to Alias documentation
This commit is contained in:
parent
5aefca6be7
commit
762ca4d7eb
|
@ -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;
|
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Soap\Alias("User")
|
||||||
|
*/
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @Soap\ComplexType("int", nillable=true)
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Soap\ComplexType("string")
|
* @Soap\ComplexType("string")
|
||||||
*/
|
*/
|
||||||
|
@ -63,11 +71,6 @@ You can expose only the properties (public, protected or private) of a complex t
|
||||||
*/
|
*/
|
||||||
public $lastname;
|
public $lastname;
|
||||||
|
|
||||||
/**
|
|
||||||
* @Soap\ComplexType("int", nillable=true)
|
|
||||||
*/
|
|
||||||
private $id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Soap\ComplexType("string")
|
* @Soap\ComplexType("string")
|
||||||
*/
|
*/
|
||||||
|
@ -135,3 +138,9 @@ ComplexType
|
||||||
`ComplexType` accepts the following options:
|
`ComplexType` accepts the following options:
|
||||||
|
|
||||||
* nillable: To specify that the value can be null
|
* 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).
|
||||||
|
|
Loading…
Reference in New Issue