src/Soluble/Normalist/Synthetic/Table.php
public function findOrFail($id)
    {
        $record = $this->find($id);
        if ($record === false) {
            throw new Exception\NotFoundException(__METHOD__ . ": cannot find record '$id' in table '$this->table'");
        }
        return $record;
    }
public function findOrFail($id)
    {
        $record = $this->find($id);
        if ($record === false) {
            throw new Exception\NotFoundException(__METHOD__ . ": cannot find record '$id' in table '$this->table'");
        }
        return $record;
    }
Find a record by primary key, throw a NotFoundException if record does not exists

@param integer|string|array $id

@throws Exception\NotFoundException
@throws Exception\InvalidArgumentException when the id is not valid
@throws Exception\PrimaryKeyNotFoundException

@return Record