public function createAttachedEntity($entityClass, $values = [], $key = null)
    {
        $this->job->createAttachedEntity($entityClass, $values, $key);
        return $this;
    }
public function createAttachedEntity($entityClass, $values = [], $key = null)
    {
        $this->job->createAttachedEntity($entityClass, $values, $key);
        return $this;
    }
public function createAttachedEntity ( $ entityClass , $ values = [ ] , $ key = null ) { $ this -> job -> createAttachedEntity ( $ entityClass , $ values , $ key ) ; return $ this ; }
Creates an entity and adds it.

@param string       $entityClass
@param array|string $values
@param null|string  $key

@return \Core\Entity\EntityInterface
@since 0.29
Creates an entity and adds it .