src/Leevel/Database/Ddd/Select.php
public function find(int $id, array $column = ['*']): IEntity
    {
        return $this->select
            ->where($this->entity->singlePrimaryKey(), '=', $id)
            ->setColumns($column)
            ->findOne();
    }
public function find(int $id, array $column = ['*']): IEntity
    {
        return $this->select
            ->where($this->entity->singlePrimaryKey(), '=', $id)
            ->setColumns($column)
            ->findOne();
    }
通过主键查找模型实体.

@param int   $id
@param array $column

@return \Leevel\Database\Ddd\IEntity