Bravo3\Orm\Query\QueryResult::getEntityById PHP Method

getEntityById() public method

Return an entity from the results by its ID
public getEntityById ( string $id ) : object | null
$id string
return object | null
    public function getEntityById($id)
    {
        if (!array_key_exists($id, $this->entities)) {
            $this->hydrateEntity($id);
        }
        return $this->entities[$id];
    }