Tag: models

8 How do I get model/record attributes in their proper types, and not just strings? 2014-11-13T18:11:24.377

6 Allow anonymous submission on a custom element type? 2014-07-18T19:35:52.503

6 Query table in a different database 2015-04-01T19:46:47.973

5 Content Modeling for Site Architecture Recommendations 2014-10-30T19:16:02.237

5 Populate a record with a model? 2014-11-29T03:56:51.147

4 How to return errors from a model back to the template? 2014-11-22T17:37:02.870

4 What attribute type should I set in the record or model to create a TEXT type in the database? 2015-05-14T11:44:53.010

4 Craft Commerce: Custom address model validations 2016-05-09T00:04:12.187

3 Plugin autoload classes 2014-09-21T15:02:26.707

3 Models v Records - confused 2014-12-17T18:46:46.790

3 Can a model or record have conditional requirements? 2015-02-15T01:14:55.610

3 How do I write custom model validators for my plugin that refer to other fields? 2016-05-28T00:27:12.800

3 Model/Record AttributeType documentation? 2016-07-04T20:23:06.970

3 Getting related models in templates? 2016-08-25T09:45:10.087

2 How can I have a dynamic/virtual attribute AND have as an attribute of the Model? 2014-11-13T22:10:13.823

2 How can I search for entries that are enabled OR disabled? 2014-12-10T20:37:23.230

2 How do I validate an array model attribute against a set of possible values? 2015-03-26T21:38:40.923

2 How to add to arrays in models? 2015-09-27T03:14:49.590

2 More extensive documentation for defining models for plugins 2015-10-29T22:39:59.300

2 How to duplicate an element type model with content? 2016-09-07T12:56:47.367

2 Plugin development - Querying related data 2017-02-01T18:16:07.757

2 Custom plugin - cannot save record 2017-03-16T11:42:23.430

1 When should I build upon existing models in my own plugins? 2014-07-24T17:13:36.610

1 Do I need a model when I have a record? 2014-08-28T17:25:08.687

1 From AttributeType::Enum in Model to a matching selectField? 2014-08-29T16:32:50.513

1 MVC - Should these be seperate controllers/models etc 2014-11-24T13:22:15.923

1 Customise errors when validating model data? 2015-02-21T20:50:53.883

1 When using Active Record with a View (instead of Table) the primary key is not set in the record after save 2015-03-26T20:07:26.937

1 Is there a way to define an attribute setter method on a model? 2015-04-06T15:16:55.447

1 Is there a good way of setting a model attribute to be an instance of another model? 2015-04-07T16:05:05.620

1 Getting an entry's tags 2015-04-20T23:00:44.550

1 Using $model->validate() with AttributeType::Url 2015-11-22T04:21:09.460

1 Getting UTC DateTime from Model attributes 2016-03-18T15:20:29.717

1 Override a model method via plugin 2016-05-14T22:32:10.260

1 Validating Date of Birth format from a form field value 2016-05-25T21:37:59.287

1 Filter conditions on related UserModel in custom Record 2016-09-15T04:41:32.160

1 Is it possible to return data/models from controller to template via setRouteVariables? 2016-10-23T16:56:05.357

1 AttributeType::Number giving validation error "Must be an integer" 2017-07-03T04:51:32.680

1 Saving Form Data to Plugin Record via Javascript 2017-07-18T19:34:44.357

1 How to detect the model type of an item in an array of query results 2017-08-16T18:05:24.177

0 AttributeType::String is NULL in my database 2015-03-23T21:56:47.260

0 setAttribute Issue 2015-05-12T14:20:09.947

0 Error with model validation 2015-05-13T09:05:58.923

0 When to set Model properties 2015-09-15T14:44:58.613

0 Plugin Use Default Value When Empty 2016-04-02T18:39:17.947

0 Model public method throws CMapIterator warning 2016-09-18T13:29:57.550

0 no element type exists with getCriteria and custom element type 2017-06-07T11:59:26.727