Skip to content

Commit

Permalink
Merge pull request #8 from WriteOrRead/mongodb-types
Browse files Browse the repository at this point in the history
Mongodb types
  • Loading branch information
merk committed Mar 19, 2013
2 parents 2c27a72 + 34fd0ca commit 8e6dd7d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion merkDoughBundle.php
Expand Up @@ -11,8 +11,9 @@

namespace merk\DoughBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\ODM\MongoDB\Mapping\Types\Type;
use Dough\Money\BaseMoney;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* merkDoughBundle
Expand All @@ -21,6 +22,14 @@
*/
class merkDoughBundle extends Bundle
{
public function __construct()
{
Type::registerType('dough_money', 'Dough\Doctrine\ODM\MongoDB\Type\DoughMoneyType');
Type::registerType('dough_currency_money', 'Dough\Doctrine\ODM\MongoDB\Type\DoughCurrencyMoneyType');
Type::registerType('dough_money_hash', 'Vespolina\Pricing\Doctrine\ODM\MongoDB\Type\DoughMoneyHashType');
Type::registerType('dough_currency_money_hash', 'Vespolina\Pricing\Doctrine\ODM\MongoDB\Type\DoughCurrencyMoneyHashType');
}

public function boot()
{
parent::boot();
Expand Down

0 comments on commit 8e6dd7d

Please sign in to comment.