active-record icon indicating copy to clipboard operation
active-record copied to clipboard

Avoid `set` and `get` prefixes for methods

Open Tigrov opened this issue 1 year ago • 0 comments

Avoid set and get prefixes when declaring method names in the base ActiveRecord classes.

These prefixes will be used to access values of properties and relations e.g. getName(), setName()

Rename existing methods

  • getTableName() -> tableName()
  • getIsNewRecord() -> isNewRecord()
  • getDirtyAttributes() -> dirtyAttributes()
  • and so on

Also see

  • #343

Tigrov avatar Jun 02 '24 06:06 Tigrov