public function insert(ClassMetadataInfo $classMetadata, $id, $xmlContent)
{
$this->prepareStoragePathForClass($this->resolveClassName($classMetadata));
$filePath = $this->getFilename($classMetadata, $id);
$result = file_put_contents($filePath, $xmlContent);
if (false === $result) {
// @codeCoverageIgnoreStart
throw new StorageException("Entity '{$id}' could not be saved to the filesystem at '{$filePath}'");
// @codeCoverageIgnoreEnd
}
return $result > 0;
}