PHP Trait TORM\Persistence

Afficher le fichier Open project: taq/torm

Méthodes publiques

Méthode Description
destroy ( ) : boolean Destroy the current object
save ( boolean $force = false ) : boolean Save or update currenct object
updateAttributes ( mixed $attrs ) : updated Update object attributes

Private Methods

Méthode Description
_insert ( mixed $attrs, string $calling, string $pk, mixed $pk_value ) : inserted Insert a new record
_update ( mixed $attrs, string $calling, string $pk, mixed $pk_value ) : boolean Update a record

Method Details

destroy() public méthode

Destroy the current object
public destroy ( ) : boolean
Résultat boolean destroyed or not

save() public méthode

Save or update currenct object
public save ( boolean $force = false ) : boolean
$force boolean to force saving
Résultat boolean saved/updated

updateAttributes() public méthode

Update object attributes
public updateAttributes ( mixed $attrs ) : updated
$attrs mixed attributes
Résultat updated or not