Extends
lithium\core\ObjectSource
public function alias($alias = null) {
if ($alias) {
$this->_config['alias'] = $alias;
return $this;
}
if (!$this->_config['alias'] && ($model = $this->_config['model'])) {
$this->_config['alias'] = $model::meta('name');
}
return $this->_config['alias'];
}