public function theFollowingRecordsInTheRepository($entity, YamlStringNode $records)
    {
        $manager = $this->getDoctrine()->getManager();
        $accessor = new PropertyAccessor();
        foreach ($records->toArray() as $record) {
            $instance = new $entity();
            foreach ($record as $prop => $value) {
                $accessor->setValue($instance, $prop, $value);
            }

            $manager->persist($instance);
        }
        $manager->flush();
    }