Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4830

Remove #one method from has_many associations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Query
    • Labels:
      None

      Description

      Investigate whether has_many associations have #exists? method that returns whether any child documents exist and queries the database efficiently (i.e. does not retrieve the entire set of child documents)
      Document the #exists? method on associations
      Remove the #one method added in 4547

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.pudeyev Oleg Pudeyev
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: