forked from mirror/Part-DB.Part-DB-server
Show a treeview in the admin menus, to select between the different elements.
This commit is contained in:
parent
928b574d8c
commit
650b388a1d
16 changed files with 269 additions and 25 deletions
|
@ -25,6 +25,7 @@ namespace App\Entity;
|
|||
|
||||
use App\Validator\Constraints\NoneOfItsChildren;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
|
@ -58,7 +59,7 @@ class AttachmentType extends StructuralDBElement
|
|||
* @return Attachment[] all attachements with this type, as a one-dimensional array of Attachement-objects
|
||||
* (sorted by their names)
|
||||
*/
|
||||
public function getAttachementsForType(): ArrayCollection
|
||||
public function getAttachementsForType(): Collection
|
||||
{
|
||||
// the attribute $this->attachements is used from class "AttachementsContainingDBELement"
|
||||
if (null === $this->attachments) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue