[#164] sdk/object: Add HasParent method

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-30 20:21:32 +03:00 committed by Leonard Lyubich
parent 2a2e4d8577
commit 1305bc750e
3 changed files with 29 additions and 0 deletions

View file

@ -148,3 +148,8 @@ func (o *RawObject) CutPayload() *RawObject {
func (o *RawObject) ResetRelations() {
o.resetRelations()
}
// InitRelations initializes relation field.
func (o *RawObject) InitRelations() {
o.initRelations()
}