mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 03:14:32 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -74,7 +74,6 @@ class EntityExporter
|
|||
}
|
||||
|
||||
//Ensure that all entities are of type AbstractNamedDBElement
|
||||
$entity_type = null;
|
||||
foreach ($entities as $entity) {
|
||||
if (!$entity instanceof AbstractNamedDBElement) {
|
||||
throw new InvalidArgumentException('All entities must be of type AbstractNamedDBElement!');
|
||||
|
|
|
@ -50,7 +50,7 @@ trait PKImportHelperTrait
|
|||
*/
|
||||
protected function convertAttachmentDataToEntity(array $attachment_row, string $target_class, string $type): Attachment
|
||||
{
|
||||
//By default we use the cached version
|
||||
//By default, we use the cached version
|
||||
if (!$this->import_attachment_type) {
|
||||
//Get the import attachment type
|
||||
$this->import_attachment_type = $this->em->getRepository(AttachmentType::class)->findOneBy([
|
||||
|
@ -103,7 +103,7 @@ trait PKImportHelperTrait
|
|||
/**
|
||||
* Imports the attachments from the given data
|
||||
* @param array $data The PartKeepr database
|
||||
* @param string $table_name The table name for the attachments (if it contain "image", it will be treated as an image)
|
||||
* @param string $table_name The table name for the attachments (if it contains "image", it will be treated as an image)
|
||||
* @param string $target_class The target class (e.g. Part)
|
||||
* @param string $target_id_field The field name where the target ID is stored
|
||||
* @param string $attachment_class The attachment class (e.g. PartAttachment)
|
||||
|
|
|
@ -30,7 +30,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
||||
|
||||
/**
|
||||
* This service is used to other non mandatory data from a PartKeepr export.
|
||||
* This service is used to other non-mandatory data from a PartKeepr export.
|
||||
* You have to import the datastructures and parts first to use project import!
|
||||
*/
|
||||
class PKOptionalImporter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue