db\ActiveQuery alias()

alias() public method (available since version 2.0.7)

Define an alias for the table defined in $modelClass.

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.

public $this alias ( $alias )
$alias string

The table alias.

return $this

The query object itself

doc_Yii
2016-10-30 16:56:08
Comments
Leave a Comment

Please login to continue.