Added a method to retrieve the error code directly in Phalcon
Merge pull request #3017 from rianorie/2.0.0_2930_getErrorFromPdo

Added a method to retrieve the error code directly in Phalcon