mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
ManyToOne(Address)
This commit is contained in:
60
src/CL/CustomFieldsBundle/Entity/Adress.php
Normal file
60
src/CL/CustomFieldsBundle/Entity/Adress.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user