Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from phansys/master
Browse files Browse the repository at this point in the history
Resolve Doctrine proxies to real entity names
  • Loading branch information
stephpy committed Nov 14, 2014
2 parents 022e8eb + 0454f2e commit e3dc567
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
}],
"require": {
"php": ">=5.3.2",
"symfony/options-resolver": "*"
"symfony/options-resolver": "*",
"doctrine/common": "~2.2"
},
"require-dev": {
"atoum/atoum": "dev-master",
Expand Down
3 changes: 3 additions & 0 deletions src/ResolveComponent/BasicComponentDataResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spy\Timeline\ResolveComponent;

use Doctrine\Common\Util\ClassUtils;
use Spy\Timeline\Exception\ResolveComponentDataException;
use Spy\Timeline\ResolveComponent\ValueObject\ResolveComponentModelIdentifier;
use Spy\Timeline\ResolveComponent\ValueObject\ResolvedComponentData;
Expand Down Expand Up @@ -41,6 +42,8 @@ public function resolveComponentData(ResolveComponentModelIdentifier $resolve)
$model = $modelClass;
}

$model = ClassUtils::getRealClass($model);

return new ResolvedComponentData($model, $identifier, $data);
}
}

0 comments on commit e3dc567

Please sign in to comment.