Title: 
  ORM: has<property>() doesn't take the property's where attribute into account
| View in TrackerStatus/Resolution/Reason: To Test//Investigate
Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)
Created: 05/06/2016
Components: ORM Support
Versions: 2016
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
Problem Description:
Given this property:
property name="bars" singularname="bar" fieldtype="one-to-many" fkcolumn="fooid" cfc="bar" where="deleted=0";
The hasBar() function doesn't use the where attribute
Steps to Reproduce:
See included files.
Actual Result:
hasBar() returns true
Expected Result:
hasBar() returns true
Any Workarounds:
Set lazy to false on the property or create your own has<property>() function.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID:	4149665
Reason:	PRHaveInfo
External Customer Info:
External Company:  
External Customer Name: Mingo Hagen
External Customer Email:  
External Test Config: My Hardware and Environment details:
CF9 through CF2016
  Attachments:
- May 06, 2016 00:00:00: 1_orm-has1.zip
 - May 11, 2016 00:00:00: 2_orm-has1.png
 
Comments: