ManyToOne(Address)

This commit is contained in:
Marc Ducobu
2014-10-03 10:42:29 +02:00
parent 9f3d89380d
commit c2869edbed
17 changed files with 688 additions and 14 deletions

View File

@@ -0,0 +1,60 @@
<?php
namespace CL\CustomFieldsBundle\Entity;
/**
* Adress
*/
class Adress
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $data;
public function __toString()
{
return $this->data;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set data
*
* @param string $data
*
* @return Adress
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* Get data
*
* @return string
*/
public function getData()
{
return $this->data;
}
}

View File

@@ -27,6 +27,8 @@ class BlopEntity
*/
private $customField;
private $adress;
/**
* Get id
@@ -38,6 +40,23 @@ class BlopEntity
return $this->id;
}
public function setAdress($a)
{
$this->adress = $a;
return $this;
}
/**
* Get field1
*
* @return string
*/
public function getAdress()
{
return $this->adress;
}
/**
* Set field1
*