ModelRefImpl.refersTo

Returns true if other's primary key is equal to the foreign key stored in this ModelRef instance. Does not check any other fields. Does not require this ModelRef to be populated.

  1. bool refersTo(TModel other)
  2. bool refersTo(TSelect other)
    struct ModelRefImpl(alias id, _TModel, _TSelect)
    const
    static if(!is(TModel == TSelect))
    bool
    refersTo
    ()

Meta