public function createFakeEntity(
        EntityTypeInterface $type,
        array $options = array(),
        EntityInterface $parent = null
    ) {
        $options[self::OPTION_MARK_CLEAN] = true;
        $entity = $type->createEntity([], $parent);
        $this->fake($entity, $options);
        return $entity;
    }
public function createFakeEntity(
        EntityTypeInterface $type,
        array $options = array(),
        EntityInterface $parent = null
    ) {
        $options[self::OPTION_MARK_CLEAN] = true;
        $entity = $type->createEntity([], $parent);
        $this->fake($entity, $options);
        return $entity;
    }
public function createFakeEntity ( EntityTypeInterface $ type , array $ options = array ( ) , EntityInterface $ parent = null ) { $ options [ self :: OPTION_MARK_CLEAN ] = true ; $ entity = $ type -> createEntity ( [ ] , $ parent ) ; $ this -> fake ( $ entity , $ options ) ; return $ entity ; }
Creates a entity with fake data for the given type.

@param EntityTypeInterface $type type to create entities for
@param array $options For valid options see fake() method
@param EntityInterface $parent Parent entity to create entity within

@return EntityInterface newly created with fake data

@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 a entity with fake data for the given type .