In my project I needed to get the last violation constraint name
generated by database in order to show custom error messages in view
files. I search for this feature in CakePHP but I didn't find.
Actually, database files have a function called lastError but the
problem with it is sometimes the function returns null and sometimes
the message returned isn't the message with the violation constraint
information.
        I implement the feature mentioned above (I wrote a new function
called getLastViolationConstraint and altered other function) and
created a patch. Since we have a postgres database I just implemented
this feature for this database. Do CakePHP developers intend to
implement this feature or something similar ? If not, how could I make
this feature available ?

Thanks,

Hugo Braga.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to