public function removeAttachmentJoins()
    {
        $joinProto = $this->modelFactory()->get(Join::class);

        $loader = $this->collectionLoader();
        $loader
            ->setModel($joinProto)
            ->addFilter('object_type', $this->objType())
            ->addFilter('object_id', $this->id());

        $collection = $loader->load();

        foreach ($collection as $obj) {
            $obj->delete();
        }

        return true;
    }
public function removeAttachmentJoins()
    {
        $joinProto = $this->modelFactory()->get(Join::class);

        $loader = $this->collectionLoader();
        $loader
            ->setModel($joinProto)
            ->addFilter('object_type', $this->objType())
            ->addFilter('object_id', $this->id());

        $collection = $loader->load();

        foreach ($collection as $obj) {
            $obj->delete();
        }

        return true;
    }
public function removeAttachmentJoins ( ) { $ joinProto = $ this -> modelFactory ( ) -> get ( Join :: class ) ; $ loader = $ this -> collectionLoader ( ) ; $ loader -> setModel ( $ joinProto ) -> addFilter ( 'object_type' , $ this -> objType ( ) ) -> addFilter ( 'object_id' , $ this -> id ( ) ) ; $ collection = $ loader -> load ( ) ; foreach ( $ collection as $ obj ) { $ obj -> delete ( ) ; } return true ; }
Remove all joins linked to a specific attachment.

@return boolean
Remove all joins linked to a specific attachment .