public function __construct() { parent::__construct(); if (empty($this->entityName)) { $name = get_class($this); if (preg_match('@\\\\([\\w]+)$@', $name, $matches)) { $name = $matches[1]; } if ($name != 'Record') { $this->entityName = $name; } } }
public function __construct() { parent::__construct(); if (empty($this->entityType)) { $name = get_class($this); if (preg_match('@\\\\([\\w]+)$@', $name, $matches)) { $name = $matches[1]; } if ($name != 'Record') { $this->entityType = Util::normilizeScopeName($name); } } $this->entityName = $this->entityType; }