source/Spiral/ORM/Entities/Relations/HasManyRelation.php
public function add(RecordInterface $record): self
    {
        $this->assertValid($record);
        $this->loadData(true)->instances[] = $record;

        return $this;
    }
public function add(RecordInterface $record): self
    {
        $this->assertValid($record);
        $this->loadData(true)->instances[] = $record;

        return $this;
    }
public function add ( RecordInterface $ record ) : self { $ this -> assertValid ( $ record ) ; $ this -> loadData ( true ) -> instances [ ] = $ record ; return $ this ; }
Add new record into entity set. Attention, usage of this method WILL load relation data
unless partial.

@param RecordInterface $record

@return self

@throws RelationException
Add new record into entity set . Attention usage of this method WILL load relation data unless partial .