src/orm/classes/Table.php
public function find($id)
    {
        if (array_key_exists($id, $this->registry))
        {
            return $this->registry[$id];
        }

        $columns = $this->getColumns();
        $pKey = $this->getPrimaryKey();
        $q = $this->createSelectQuery();
        $q->where($q->expr->eq($pKey, $q->bindValue($id, null, $columns[$pKey]->getPdoType())));
        $entity = $this->loadOneFromQuery($q);

        if (null !== $entity)
        {
            $this->registry[$id] = $entity;
        }
        return $entity;
    }
public function find($id)
    {
        if (array_key_exists($id, $this->registry))
        {
            return $this->registry[$id];
        }

        $columns = $this->getColumns();
        $pKey = $this->getPrimaryKey();
        $q = $this->createSelectQuery();
        $q->where($q->expr->eq($pKey, $q->bindValue($id, null, $columns[$pKey]->getPdoType())));
        $entity = $this->loadOneFromQuery($q);

        if (null !== $entity)
        {
            $this->registry[$id] = $entity;
        }
        return $entity;
    }
Возвращает сущность по основному ключу

@param mixed $id

@return ORM_Entity

@since 1.00