alias() public method

This method will adjust [[from]] so that an already defined alias will be overwritten. If none was defined, [[from]] will be populated with the given alias.
Since: 2.0.7
public alias ( string $alias )
$alias string the table alias.
Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function alias($alias)
 {
     $this->alias = null;
     $result = parent::alias($alias);
     $this->trigger(static::EVENT_ALIAS);
     return $result;
 }