for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pim\Bundle\CustomEntityBundle\Entity;
/**
* @author Antoine Guigan <[email protected]>
* @copyright 2013 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
* @deprecated will be removed in 1.7,
* please use \Pim\Bundle\CustomEntityBundle\Entity\AbstractTranslatableCustomEntity
*/
abstract class AbstractTranslatableCustomOption extends AbstractTranslatableCustomEntity
{
* {@inheritdoc}
public function getLabel()
$translated = $this->getTranslation() ? $this->getTranslation()->getLabel() : null;
return ($translated !== '' && $translated !== null) ? $translated : '['.$this->getCode().']';
}
public function setLabel($label)
$this->getTranslation()->setLabel($label);
return $this;
public static function getSortOrderColumn()
return 'label';
public static function getLabelProperty()