Skip to Content
Menu
This question has been flagged
2513 Views

Hi,

Is it valid to test record equality (is record1 the same as record2) the following way:

record1 == record2


or should we do:

record1.id == record2.id


Which is the preferred way and why ? Thanks !

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 23
1707
1
Jan 21
2971
7
Sep 20
5991
1
Dec 17
5587
1
Nov 17
2746