for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pim\Bundle\CustomEntityBundle\Entity;
use Pim\Component\ReferenceData\Model\AbstractReferenceData;
/**
* @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)
*/
abstract class AbstractCustomEntity extends AbstractReferenceData
{
/** @var \DateTime */
protected $created;
protected $updated;
* {@inheritdoc}
public function getReference()
return $this->code;
}
* @return \DateTime
public function getCreated()
return $this->created;
public function getUpdated()
return $this->updated;
* @param \DateTime $created
*
* @return AbstractCustomEntity
public function setCreated(\DateTime $created)
$this->created = $created;
return $this;
* @param \DateTime $updated
public function setUpdated(\DateTime $updated)
$this->updated = $updated;
* Returns the custom entity name used in the configuration
* Used to map row actions on datagrid
* @return string
abstract public function getCustomEntityName();
public static function getLabelProperty()
return 'code';
* Returns the sort order
public static function getSortOrderColumn()