From 33465a34902500cd61743c2bc05a070fd3cc1d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 15 Dec 2013 23:33:34 +0100 Subject: [PATCH] add base configuration for user --- .../MissingBundleException.php | 20 ++++++ Entity/Agent.php | 64 +++++++++++++++++++ Resources/config/doctrine/Agent.orm.yml | 14 ++++ .../{messages.fr.xlf => messages.fr---.xlf} | 0 4 files changed, 98 insertions(+) create mode 100644 DependencyInjection/MissingBundleException.php create mode 100644 Entity/Agent.php create mode 100644 Resources/config/doctrine/Agent.orm.yml rename Resources/translations/{messages.fr.xlf => messages.fr---.xlf} (100%) diff --git a/DependencyInjection/MissingBundleException.php b/DependencyInjection/MissingBundleException.php new file mode 100644 index 000000000..750f0157e --- /dev/null +++ b/DependencyInjection/MissingBundleException.php @@ -0,0 +1,20 @@ +id; + } + + /** + * Set name + * + * @param string $name + * @return Agent + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * Get name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + public function __toString() { + parent::__toString(); + } +} diff --git a/Resources/config/doctrine/Agent.orm.yml b/Resources/config/doctrine/Agent.orm.yml new file mode 100644 index 000000000..8d120e687 --- /dev/null +++ b/Resources/config/doctrine/Agent.orm.yml @@ -0,0 +1,14 @@ +CL\Chill\MainBundle\Entity\Agent: + type: entity + table: agents + id: + id: + type: integer + id: true + generator: + strategy: AUTO + fields: + name: + type: string + length: 80 + diff --git a/Resources/translations/messages.fr.xlf b/Resources/translations/messages.fr---.xlf similarity index 100% rename from Resources/translations/messages.fr.xlf rename to Resources/translations/messages.fr---.xlf