id = $id; return $this; } public function getId(): int { return $this->id; } public function setNoteId(int $note_id): self { $this->note_id = $note_id; return $this; } public function getNoteId(): int { return $this->note_id; } public function setAttachmentId(int $attachment_id): self { $this->attachment_id = $attachment_id; return $this; } public function getAttachmentId(): int { return $this->attachment_id; } public function setAttachmentCollectionId(int $attachment_collection_id): self { $this->attachment_collection_id = $attachment_collection_id; return $this; } public function getAttachmentCollectionId(): int { return $this->attachment_collection_id; } // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array { return [ 'name' => 'attachment_collection_entry', 'fields' => [ 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], 'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'foreign key to note table'], 'attachment_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Attachment.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'foreign key to attachment table'], 'attachment_collection_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'AttachmentCollection.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'foreign key to collection table'], ], 'primary key' => ['id'], ]; } }