Cake\ORM\Behavior\TranslateBehavior::_referenceName PHP Метод

_referenceName() защищенный Метод

The reference name is usually derived from the class name of the table object (PostsTable -> Posts), however for autotable instances it is derived from the database table the object points at - or as a last resort, the alias of the autotable instance.
protected _referenceName ( Table $table ) : string
$table Cake\ORM\Table The table class to get a reference name for.
Результат string
    protected function _referenceName(Table $table)
    {
        $name = namespaceSplit(get_class($table));
        $name = substr(end($name), 0, -5);
        if (empty($name)) {
            $name = $table->table() ?: $table->alias();
            $name = Inflector::camelize($name);
        }
        return $name;
    }