Quantcast
Channel: FeedBunch:34cac4333624170fed210ff2d113469c380d7398 commits
Viewing all articles
Browse latest Browse all 39

Associate validation errors to base object, not a specific attribute

$
0
0
When trying to save a new deleted_entries instance a validation checks that there isn't a non-deleted entry with the same feed_id and either guid of unique_hash. Similarly when trying to save a new entry instance a validation checks that there isn't a deleted entry with the same feed_id and either guid or unique_hash. In both cases if the validation fails, the error is not attributable to a single model attribute and must be associated with the base object instead.

Viewing all articles
Browse latest Browse all 39

Trending Articles