\Pivot\Core\TraitsRequestTrait

Summary

Methods
Properties
Constants
find()
getClassName()
request()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

find()

find(mixed  $id, integer  $lockMode = \Doctrine\DBAL\LockMode::NONE, integer|null  $lockVersion = null) : object|null

Finds an entity by its primary key / identifier.

Parameters

mixed $id

The identifier.

integer $lockMode

The lock mode.

integer|null $lockVersion

The lock version.

Returns

object|null —

The entity instance or NULL if the entity can not be found.

getClassName()

getClassName() : string

Returns

string

request()

request(mixed  $id) : object

Parameters

mixed $id

The identifier.

Throws

\Pivot\Core\Exception\NotFoundException

Returns

object