4 Replies Latest reply on Jun 25, 2013 1:36 AM by Gerbrand Stap

    PropertyBag and sorted loading

    Gerbrand Stap

      It seems that it is not possible to load the first item using a specific sorting when the used model is a PropertyBag.

      I tried to do something like:

      Model.find( :first, :order => :date )

      And expected to get the record with the oldest/smallest date, but instead the first record from the table is loaded.

      This does work like I expected when the model is a FixedSchema.

       

      Should this work for both PropertyBag and FixedSchema?