Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations" code example

Example: Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations"

if (_.isArray(_.get(definition, 'options.timestamps'))) {
                      definition.attributes[_.get(definition, 'options.timestamps[0]')] = {
                        type: 'timestamp',
                      };
                      definition.attributes[_.get(definition, 'options.timestamps[1]')] = {
                        type: 'timestampUpdate',
                      };
                    }                  

                    // Save all attributes (with timestamps)
                    target[model].allAttributes = _.clone(definition.attributes);

Tags:

Php Example