Beta version

abstract class AbstractDateTimed extends AbstractEntity

An AbstractEntity with datetime fields to keep track of time with your items.

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

resetDates()

Set creation and update date to now.

Details

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

at line 53
DateTime getCreatedAt()

Return Value

DateTime

at line 62
AbstractEntity setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractEntity

at line 77
DateTime getUpdatedAt()

Return Value

DateTime

at line 86
AbstractEntity setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractEntity

at line 96
preUpdate()

at line 103
prePersist()

at line 113
AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity