method

length

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: CollectionAssociation
length() public

Returns the size of the collection calling size on the target.

If the collection has been already loaded length and size are equivalent. If not and you are going to need the records anyway this method will take one less query. Otherwise size is more efficient.

Show source
Register or log in to add new notes.