Bluz\Db\Row::getPrimaryKey PHP Method

getPrimaryKey() protected method

Retrieves an associative array of primary keys, if it exists
protected getPrimaryKey ( ) : array
return array
    protected function getPrimaryKey()
    {
        $primary = array_flip($this->getTable()->getPrimaryKey());
        $array = array_intersect_key($this->toArray(), $primary);
        return $array;
    }