summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-02-18 11:20:53 -0500
committerChris Cornutt <enygma@phpdeveloper.org>2015-02-18 11:20:53 -0500
commit092eac0e63e4b2f7e3aaa1ebe54c88ec62ffebe0 (patch)
tree6fff0fd2f6ad0b1356618d9e1bbc46c7917b3cf3 /src
parentbecd160a2e080fe7ee0805a8def0ad654561bb11 (diff)
downloadgatekeeper-092eac0e63e4b2f7e3aaa1ebe54c88ec62ffebe0.zip
gatekeeper-092eac0e63e4b2f7e3aaa1ebe54c88ec62ffebe0.tar.gz
gatekeeper-092eac0e63e4b2f7e3aaa1ebe54c88ec62ffebe0.tar.bz2
adding the security questions relationship
Diffstat (limited to 'src')
-rw-r--r--src/Psecio/Gatekeeper/UserModel.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/UserModel.php b/src/Psecio/Gatekeeper/UserModel.php
index 8b7b346..38fcc11 100644
--- a/src/Psecio/Gatekeeper/UserModel.php
+++ b/src/Psecio/Gatekeeper/UserModel.php
@@ -109,6 +109,15 @@ class UserModel extends \Psecio\Gatekeeper\Model\Mysql
'method' => 'findByUserId',
'local' => 'id'
)
+ ),
+ 'securityQuestions' => array(
+ 'description' => 'Security questions for the user',
+ 'type' => 'relation',
+ 'relation' => array(
+ 'model' => '\\Psecio\\Gatekeeper\\SecurityQuestionCollection',
+ 'method' => 'findByUserId',
+ 'local' => 'id'
+ )
)
);