Property | Type | Description | |
---|---|---|---|
$storage | object | For Doctrine, this will be an EntityManager instance. |
Method | Description | |
---|---|---|
__construct ( object $storage, string | null $saveMethod = null, string | null $deleteMethod = null, $flushMethod = null ) : void | Create a new repository store instance. | |
deleteSaved ( ) : void | Delete all the saved models. |
Method | Description | |
---|---|---|
delete ( object $model ) : boolean | Delete our object from the db. | |
flush ( ) : boolean | Flushes changes to storage. | |
save ( object $model ) : boolean | Save our object to the db, and keep track of it. |
protected object $storage | ||
return | object |