__construct()
__construct(\Gishiki\Database\DatabaseInterface $connection)
Create a new object.
Parameters
\Gishiki\Database\DatabaseInterface | $connection | the database connection to be used |
Represent the interface following active record pattern used on objects that are mapped into a database.
__construct(\Gishiki\Database\DatabaseInterface $connection)
Create a new object.
\Gishiki\Database\DatabaseInterface | $connection | the database connection to be used |
load(\Gishiki\Database\DatabaseInterface $connection) : array<mixed,\Gishiki\Core\MVC\Model\ActiveRecordInterface>
Read one or more object from the database.
\Gishiki\Database\DatabaseInterface | $connection | the database connection to be used |
the result set
getReferenceID() : integer
Return the current object ID.
Exactly as getObjectID(), this function also ensure an ID is returned, and if it is not a save() operation will be performed, in order to generate that ID.
the current object ID, as it is used within the database