<?php
namespace {{ namespace }}{{ entity_namespace ? '\\' ~ entity_namespace : '' }};

{% block use_statements %}
use JMS\Serializer\Annotation\Type;
use Symfony\Component\Validator\Constraints as Assert;
{% endblock use_statements %}

/**
{% block phpdoc_class_header %}
 * {{ entityName }}
 *
 * This entity has been auto-generated by Cethyworks/SwaggerToolsBundle
 * Shape it to your needs.
 *
 * @ORM\Table()
 * @ORM\Entity
{% endblock phpdoc_class_header %}
 */
{% block class_definition %}
class {{ entityName }}
{% endblock class_definition %}
{
{% block class_body %}
{% include 'doctrine/_attributes.php.twig' %}

{%- for name, property in properties -%}
{% include 'doctrine/_setter.php.twig' %}{{- "\n" -}}
{% include 'doctrine/_getter.php.twig' %}{{- "\n" -}}

{%- endfor %}

{%- endblock class_body -%}{{- '}' -}}
{{- "\n" -}}
<?php
namespace {{ namespace }}{{ entity_namespace ? '\\' ~ entity_namespace : '' }};

{% block use_statements %}
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation\Type;
{% endblock use_statements %}

/**
{% block phpdoc_class_header %}
 * {{ entityName }}
 *
 * This entity has been auto-generated by Cethyworks/SwaggerToolsBundle
 * Shape it to your needs.
 *
 * @ORM\Table()
 * @ORM\Entity
{% endblock phpdoc_class_header %}
 */
{% block class_definition %}
class {{ entityName }}
{% endblock class_definition %}
{
{% block class_body %}
{% include 'doctrine/_attributes.php.twig' %}

{%- for name, property in properties -%}
{% include 'doctrine/_setter.php.twig' %}{{- "\n" -}}
{% include 'doctrine/_getter.php.twig' %}{{- "\n" -}}

{%- endfor %}

{%- endblock class_body -%}{{- '}' -}}
{{- "\n" -}}
Fix use Doctrine in Entity template
Fix use Doctrine in Entity template
