for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Rik van der Kemp <[email protected]>
* @copyright Zicht Online <http://zicht.nl>
*/
namespace Zicht\Bundle\UrlBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
* StaticReferenceTranslation
*
* @ORM\Table(name="static_reference_translation")
* @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT")
* @ORM\Entity
class StaticReferenceTranslation
{
* @var integer
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @ORM\ManyToOne(targetEntity="Zicht\Bundle\UrlBundle\Entity\StaticReference", inversedBy="translations")
public $static_reference;
* @var string
* @ORM\Column(name="url", type="string", length=255, nullable=true)
private $url;
* @ORM\Column(name="locale", type="string", length=6, nullable=true)
private $locale;
* Create a translation
* @param string $locale
* @param string $url
public function __construct($locale = null, $url = null)
$this->locale = $locale;
$this->url = $url;
}
* Get id
* @return integer
public function getId()
return $this->id;
* @return void
public function setLocale($locale)
$this->locale = strtolower(trim($locale));
* @return string
public function getLocale()
return $this->locale;
* @param mixed $static_reference
public function setStaticReference($static_reference)
$this->static_reference = $static_reference;
public function setUrl($url)
public function getUrl()
return $this->url;