Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/upstream_master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano committed Mar 1, 2012
2 parents 851b364 + 18c4c8f commit 528e51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion extensions/adapter/security/auth/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function __construct(array $config = array()) {
}

$reflection = new \ReflectionClass($config['model']);
if (!$reflection->implementsInterface('li3_doctrine2\models\IUser')) {
if (
!$reflection->implementsInterface('li3_doctrine2\models\IModel') &&
!$reflection->implementsInterface('li3_doctrine2\models\IUser')
) {
throw new ConfigException("The model {$config['model']} must implement IUser");
}

Expand Down
2 changes: 1 addition & 1 deletion models/BaseEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* This class can be used as the base class of your doctrine models, to allow
* for lithium validation to work on doctrine models.
*/
abstract class BaseEntity extends \lithium\data\Entity implements IModel, IUser {
abstract class BaseEntity extends \lithium\data\Entity implements IModel {
/**
* Criteria for data validation.
*
Expand Down

0 comments on commit 528e51d

Please sign in to comment.