NextDom\Model\Entity\Parents\BaseModel
Synopsis
class BaseModel
implements
EntityInterface
{
- // constants
- const TABLE_NAME = '';
- // members
- protected bool $_changed = false;
- // methods
- public bool getChanged()
- public $this setChanged()
- public void updateChangeState()
- public string getTableName()
- public void save()
- public void remove()
Hierarchy
Implements
Constants
Name | Value |
---|---|
TABLE_NAME | '' |
Members
protected
- $_changed — NextDom\Model\Entity\Parents\bool
Methods
public
- getChanged() — Get changed state
- getTableName()
- remove() — Remove the entity from the database
- save() — Save the entity in the database
- setChanged() — Set changed state
- updateChangeState() — Update change state if values are different