nelmio/alice — pull request #3 by digitalkaoz (2012-10-31 21:30:58+00:00)
Title: added ability to use entity ids

this PR adds the ability to use entity ids as references:

imagine follows:

```php
class Group
{
private $owner;

public function setOwner(User $owner)
{
$this->owner = $owner;
}
}
```

and you already have `User` Objects persisted in your Database (and not provided with fixtures)

you can use following in you fixture file:

```yaml
Group:
group1:
owner:
```

the random integer in combination with the typehint will be used to fetch the matching entity "findById" from the ObjectManager