protected function _getTableAlias(EntityInterface $entity)
    {
        $alias = $entity->source();
        if (mb_strpos($alias, '.') !== false) {
            $parts = explode('.', $alias);
            $alias = array_pop($parts);
        }

        return strtolower($alias);
    }
protected function _getTableAlias(EntityInterface $entity)
    {
        $alias = $entity->source();
        if (mb_strpos($alias, '.') !== false) {
            $parts = explode('.', $alias);
            $alias = array_pop($parts);
        }

        return strtolower($alias);
    }
protected function _getTableAlias ( EntityInterface $ entity ) { $ alias = $ entity -> source ( ) ; if ( mb_strpos ( $ alias , '.' ) !== false ) { $ parts = explode ( '.' , $ alias ) ; $ alias = array_pop ( $ parts ) ; } return strtolower ( $ alias ) ; }
Get table alias for the given entity.

@param \Cake\Datasource\EntityInterface $entity The entity
@return string Table alias
Get table alias for the given entity .