public function fakeData(EntityTypeInterface $type, array $options = array())
    {
        $entity = $type->createEntity();
        $this->fake($entity, $options);
        return $entity->toArray();
    }
public function fakeData(EntityTypeInterface $type, array $options = array())
    {
        $entity = $type->createEntity();
        $this->fake($entity, $options);
        return $entity->toArray();
    }
public function fakeData ( EntityTypeInterface $ type , array $ options = array ( ) ) { $ entity = $ type -> createEntity ( ) ; $ this -> fake ( $ entity , $ options ) ; return $ entity -> toArray ( ) ; }
Creates an array with fake data for the given type.

@param EntityTypeInterface $type type to create fake data for
@param array $options For valid options see fake() method

@return array of fake data for the given type

@throws \Trellis\Runtime\Entity\InvalidValueException in case of fake data being invalid for the given attribute
@throws \Trellis\Runtime\Entity\BadValueException in case of invalid locale option string
@throws \Trellis\Common\Error\RuntimeException on EmbeddedEntityListAttribute misconfiguration
Creates an array with fake data for the given type .