Gets a new field called "deleted_at"

@return string
775059
protected function getNewDeletedAtField()
    {
        $field = current(FieldTransformer::fromString('deleted_at'));
        $field->isDate = true;
        $field->dataType = 'datetime';
        $field->dateFormat = Config::getDateTimeFormat();

        return $field;
    }
971196
public function getDirty()
    {
        $dirty = parent::getDirty();
        if (! empty($this->files)) {
            // We just set the ID to the same value to trigger the update.
            $dirty[$this->getKeyName()] = $this->getKey();
        }

        return $dirty;
    }
1102857
protected function getDeletedEventAttributes(): array
    {
        $old = [];

        foreach ($this->attributes as $attribute => $value) {
            if ($this->isAttributeAuditable($attribute)) {
                $old[$attribute] = $value;
            }
        }

        return [
            $old,
            [],
        ];
    }
1347049
public function getDeleteTemplate()
    {
        if (null === $this->deleteTemplate) {
            $template = rtrim($this->getTemplatePrefix(), '/') . '/' . $this->getDeleteSuffix();
            $this->setDeleteTemplate($template);
        }

        return $this->deleteTemplate;
    }
480106
public static function onlyTrashed()
    {
        $instance = new static;

        $column = $instance->getQualifiedDeletedAtColumn();

        return $instance->newQueryWithoutScope(new SoftDeletingScope)->whereNotNull($column);
    }
1093705
public function getLastLoggedAtAttribute()
    {
        $lastLogin = Logs::where('user_id', $this->id)
                ->where('name', 'like', 'USERAUTHLISTENER_ONUSERLOGIN')
                ->orderBy('created_at', 'desc')
                ->get(['created_at'])
                ->first();

        return ($lastLogin) ? $lastLogin->created_at->diffForHumans() : 'never';
    }
1249253
public function getRow()
	{
		debug_assert( false, 'Function getRow is scheduled for deletion, replace with Model::getById( $id )' );

		$key = $this->getPrimaryKey();
		if( null !== $key )
		{
			$ret = static::getById( $key );
		}
		else
		{
			$ret = null;
		}
		return $ret;
	}
587215
private function getFilterField()
    {
        try {
            $attribute = $this->getAttribute();
            $field     = $this->mappingHelper->getFilterField($attribute);
        } catch (\Magento\Framework\Exception\NoSuchEntityException $exception) {
            $field = $this->getAttributeCode();
        }

        return $field;
    }
1109576
public function getDeleteQuestion()
    {
        $field = $this->_getParam('fid');
        if (FieldMaintenanceModel::APPOINTMENTS_NAME === $this->_getParam('sub')) {
            $used  = $this->db->fetchOne(
                    "SELECT COUNT(*)
                        FROM gems__respondent2track2appointment
                        WHERE gr2t2a_id_app_field = ? AND gr2t2a_id_appointment IS NOT NULL",
                    $field
                    );
        } else {
            $used  = $this->db->fetchOne(
                    "SELECT COUNT(*)
                        FROM gems__respondent2track2field
                        WHERE gr2t2f_id_field = ? AND gr2t2f_value IS NOT NULL",
                    $field
                    );
        }

        if (! $used) {
            return $this->_('Do you want to delete this field?');
        }

        $this->addMessage(sprintf($this->plural(
                'This field will be deleted from %s assigned track.',
                'This field will be deleted from %s assigned tracks.',
                $used), $used));

        return sprintf($this->plural(
                'Do you want to delete this field and the value stored for the field?',
                'Do you want to delete this field and the %s values stored for the field?',
                $used), $used);
    }
1206426
public function get_by()
    {
        $where = func_get_args();

        if ($this->soft_delete && $this->_temporary_with_deleted !== TRUE)
        {
            $this->_database->where($this->soft_delete_key, (bool)$this->_temporary_only_deleted);
        }

		$this->_set_where($where);

        $this->trigger('before_get');

        $row = $this->_database->get($this->_table)
                        ->{$this->_return_type()}();
        $this->_temporary_return_type = $this->return_type;

        $row = $this->trigger('after_get', $row);

        $this->_with = array();
        return $row;
    }
1343941
public function getSetterName()
    {
        return $this->replaceReservedMethod(sprintf('set%s', ucfirst($this->getUniqueName('set'))), $this->getOwner()->getPackagedName());
    }
934467
private function getDeleteQuery()
    {
        $fromClause = null;

        if (isset($this->parts['from'][0]['alias'])) {
            $fromClause = $this->parts['from'][0]['alias'].' ';
        }

        $fromClause .= 'FROM '.$this->getFromClause();

        return 'DELETE '.$fromClause.
               (($this->parts['where'] !== null) ? ' WHERE '.$this->parts['where'] : null);
    }
1221834
public function getTableDumper()
    {
        if ($this->migrated) {
            return new TableDumper($this->getEntities());
        }

        if ($this->existing()) {
            return TableDumper::make($this->getEntities())
                ->except(['id', 'created_at', 'updated_at', 'deleted_at']);
        }

        return new FieldsDumper($fields);
    }
189859
private function getPreparedDeleteById()
    {
        if (is_null($this->preparedDeleteById)) {
            $this->preparedDeleteById = $this->getServer()
                ->delete($this->tableName)
                ->where()
                ->expr($this->keyColumnName, '=', ':id');
        }

        return $this->preparedDeleteById;
    }
304642
public function getField()
    {
        if (empty($this->field)) {
            $this->field = $this->guessForeignField();
        }

        return $this->field;
    }
1001431
public function getDelete()
    {
        $item_names = request('items');
        $errors = [];

        foreach ($item_names as $name_to_delete) {
            $file_to_delete = $this->lfm->pretty($name_to_delete);
            $file_path = $file_to_delete->path();

            event(new ImageIsDeleting($file_path));

            if (is_null($name_to_delete)) {
                array_push($errors, parent::error('folder-name'));
                continue;
            }

            if (! $this->lfm->setName($name_to_delete)->exists()) {
                array_push($errors, parent::error('folder-not-found', ['folder' => $file_path]));
                continue;
            }

            if ($this->lfm->setName($name_to_delete)->isDirectory()) {
                if (! $this->lfm->setName($name_to_delete)->directoryIsEmpty()) {
                    array_push($errors, parent::error('delete-folder'));
                    continue;
                }
            } else {
                if ($file_to_delete->isImage()) {
                    $this->lfm->setName($name_to_delete)->thumb()->delete();
                }
            }

            $this->lfm->setName($name_to_delete)->delete();

            event(new ImageWasDeleted($file_path));
        }

        if (count($errors) > 0) {
            return $errors;
        }

        return parent::$success_response;
    }
1049187
public function getIdField()
    {
        if (empty($this->id_field)) {
            $this->id_field = (new IntegerField('id', 0))->unsigned(true)->size($this->getExpectedDatasetSize());
        }

        return $this->id_field;
    }