-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from K-Phoen/mongodb-support
Support Doctrine ODM as well as Doctrine ORM
- Loading branch information
Showing
3 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Uecode\Bundle\ApiKeyBundle\Document; | ||
|
||
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; | ||
use Uecode\Bundle\ApiKeyBundle\Model\ApiKeyUser as BaseUser; | ||
|
||
class ApiKeyUser extends BaseUser | ||
{ | ||
/** | ||
* @MongoDB\String | ||
*/ | ||
protected $apiKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Uecode\Bundle\ApiKeyBundle\Entity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
use Doctrine\ORM\Mapping\MappedSuperclass; | ||
use Uecode\Bundle\ApiKeyBundle\Model\ApiKeyUser as BaseUser; | ||
|
||
/** | ||
* @MappedSuperclass | ||
*/ | ||
class ApiKeyUser extends BaseUser | ||
{ | ||
/** | ||
* @ORM\Column(name="api_key", type="string", length=255, nullable=true) | ||
*/ | ||
protected $apiKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters