Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Company / CompanyCar.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Company/CompanyCar.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Company/CompanyCar.php
new file mode 100644 (file)
index 0000000..5af89b2
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace Doctrine\Tests\Models\Company;
+
+/**
+ * @Entity
+ * @Table(name="company_cars")
+ */
+class CompanyCar
+{
+    /**
+     * @Id @Column(type="integer")
+     * @GeneratedValue(strategy="AUTO")
+     */
+    private $id;
+
+    /**
+     * @Column(type="string", length=50)
+     */
+    private $brand;
+
+    public function __construct($brand = null) {
+        $this->brand = $brand;
+    }
+
+    public function getId() {
+        return $this->id;
+    }
+
+    public function getBrand() {
+        return $this->title;
+    }
+}
\ No newline at end of file