public function getPrimaryKey() {
        if ($this->primaryKey === null) {
            $schema = $this->getSchema();

            $pk = [];
            foreach ($schema->getSchemaArray()['properties'] as $column => $property) {
                if (!empty($property['primary'])) {
                    $pk[] = $column;
                }
            }
            $this->primaryKey = $pk;
        }
        return $this->primaryKey;
    }
public function getPrimaryKey() {
        if ($this->primaryKey === null) {
            $schema = $this->getSchema();

            $pk = [];
            foreach ($schema->getSchemaArray()['properties'] as $column => $property) {
                if (!empty($property['primary'])) {
                    $pk[] = $column;
                }
            }
            $this->primaryKey = $pk;
        }
        return $this->primaryKey;
    }
public function getPrimaryKey ( ) { if ( $ this -> primaryKey === null ) { $ schema = $ this -> getSchema ( ) ; $ pk = [ ] ; foreach ( $ schema -> getSchemaArray ( ) [ 'properties' ] as $ column => $ property ) { if ( ! empty ( $ property [ 'primary' ] ) ) { $ pk [ ] = $ column ; } } $ this -> primaryKey = $ pk ; } return $ this -> primaryKey ; }
Get the primaryKey.

@return array Returns the primaryKey.
Get the primaryKey .