public function getPersistedAttributes() {
    $persisted = static::getAllPersistedAttributes();
    if (empty($persisted)) {
      // if the static persisted declaration is empty return empty
      return [];
    } else {
      // otherwise add the instance variables for primaryKey, typeField and dates
      return array_merge([$this->primaryKey, static::$singleTableTypeField], static::getAllPersistedAttributes(), $this->getDates());
    }
  }
public function getPersistedAttributes() {
    $persisted = static::getAllPersistedAttributes();
    if (empty($persisted)) {
      // if the static persisted declaration is empty return empty
      return [];
    } else {
      // otherwise add the instance variables for primaryKey, typeField and dates
      return array_merge([$this->primaryKey, static::$singleTableTypeField], static::getAllPersistedAttributes(), $this->getDates());
    }
  }
public function getPersistedAttributes ( ) { $ persisted = static :: getAllPersistedAttributes ( ) ; if ( empty ( $ persisted ) ) { // if the static persisted declaration is empty return empty return [ ] ; } else { // otherwise add the instance variables for primaryKey, typeField and dates return array_merge ( [ $ this -> primaryKey , static :: $ singleTableTypeField ] , static :: getAllPersistedAttributes ( ) , $ this -> getDates ( ) ) ; } }
Get the list of persisted attributes on this model inheriting values declared on super classes and
including the model's primary key and any date fields.
@return array
Get the list of persisted attributes on this model inheriting values declared on super classes and including the model s primary key and any date fields .