protected getCollectionName ( ) : array | string | ||
return | array | string | related collection name |
protected function getCollectionName()
{
if ($this->collectionName) {
return $this->collectionName;
} else {
/* @var $modelClass ActiveRecord */
$modelClass = $this->modelClass;
return $modelClass::collectionName();
}
}