… if CFC persistent=”true” (in CF9 beta).
For instance, when you use ORMExecuteQuery() to return an array of that entity with init(required arg), it will throw an exception.
… if CFC persistent=”true” (in CF9 beta).
For instance, when you use ORMExecuteQuery() to return an array of that entity with init(required arg), it will throw an exception.
INSTANCE scope is never an official scope, but it has been adapted by many CFer's (including myself) for writing CFC.
<cfset variables.instance = structNew()>
Common usages include:
However, CF9 brings lots of much needed <cfproperty> functionality:
Unfortunately, all the properties are stored in VARIABLES scope by default, and it can’t be changed. However, since <cfproperty> has become so important and powerful in CF9, should we abandon the INSTANCE scope convention?
What do you think?
<cfinterface> does not respect implicit getters and setters. <cfproperty>. getHolderName(), getNumber(), getExpiryMM(), getExpiryYYYY(). "The getNumber method is not implemented by the component or it is declared as private."
UPDATE: CF9 FINAL will generate the getter and setter methods for you when you specify accessors=true, and they Will respace the interface if the method signatures are the same!