Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Activerecord - Dealing With Table Contraint Violations

$
0
0
Hi folks,

In my CRUD for a table in my DB, I have the PK and another 3 fields, with the other 3 fields being indexed and constrained to be unique. If I violate the constraint during create or update, I get a ghastly system error starting the constraint violation. Is there any way to deal with this in a more discrete manner?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>