Permalink
Browse files

Fixing issue where BaseSession fields were not visible and thus not m…

…apped
  • Loading branch information...
1 parent f6dc2ee commit 0022d79008fe29b307fd05ee7b9bcb86e24cd343 @mariano committed Jan 6, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 extensions/adapter/security/auth/Form.php
  2. +3 −3 models/BaseSession.php
@@ -105,6 +105,7 @@ public function __construct(array $config = array()) {
public function check($credentials, array $options = array()) {
$data = $this->_filters($credentials->data);
$conditions = $this->_scope + array_diff_key($data, $this->_validators);
+ var_dump($conditions); exit;
$user = call_user_func(array($this->repository, $this->_config['repositoryMethod']), $conditions);
return $user ? $this->_validate($user, $data) : false;
View
@@ -23,17 +23,17 @@
* @Id
* @Column(type="string")
*/
- private $id;
+ protected $id;
/**
* @Column(type="text",nullable=true)
*/
- private $data;
+ protected $data;
/**
* @Column(type="datetime")
*/
- private $expires;
+ protected $expires;
/**
* Get ID

0 comments on commit 0022d79

Please sign in to comment.