yiisoft/yii2 — pull request #1208 by cebe (2013-11-16 16:02:37+00:00)
Title: Made ActiveRecord::isPrimaryKey() public

+ added tests and fixed behavior