Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon model unique key

Good afternoon. I need to get unique parameter name of the extended model from \Phalcon\Mvc\Model I found only protected property "uniqueKey", but data there like "object_id = ?" need to parse string to get the name. The question is there in Phalcon/Mvc/Model any method which can return the name of primary key of the model or just value of it ? Thank you.



1.0k
Accepted
answer
edited Aug '16

Thank you, there is a method getIdentityField()