source/Spiral/ORM/Entities/RecordSource.php
public function findByPK($id, array $load = [])
    {
        return $this->getSelector()->wherePK($id)->load($load)->findOne();
    }
public function findByPK($id, array $load = [])
    {
        return $this->getSelector()->wherePK($id)->load($load)->findOne();
    }
public function findByPK ( $ id , array $ load = [ ] ) { return $ this -> getSelector ( ) -> wherePK ( $ id ) -> load ( $ load ) -> findOne ( ) ; }
Find document by it's primary key.

@see findOne()

@param string|int $id   Primary key value.
@param array      $load Relations to pre-load.

@return EntityInterface|Record|null
Find document by it s primary key .