Hi,
I have tried deleting all of the project files and reloading the application
but it still won't pick up the new database field.
Here is the snippet of code from the new_local_preachersRecord.cfc:
<!--- notes --->
<cffunction name="setnotes" hint="I set the notes value ." access="public"
output="false" returntype="void">
<cfargument name="notes" hint="I am this record's notes value."
required="yes" type="any" _type="string" />
<cfset _getTo().notes = arguments.notes />
</cffunction>
<cffunction name="getnotes" hint="I get the notes value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().notes />
</cffunction>
So Reactor has found the new db field 'notes' and created the necessary new
methods. But they don't show in any of the dump of those objects.
I then tried bypassing the application.reactorfactory by doing the
following:
<cfset preacher =
createObject('component','com.Record.new_local_preachersRecordmysql') />
<cfdump var="#preacher#">
The getnotes and setnotes methods are not listed in the dump???
So the problem is not in the application scope vars, it isn't in the files
generated by reactor. I am using CFMX6.1 and I am not sure how I clear the
template cache via the administrator. Is it worth deleting the class files
that cf generates? Trusted cache is off but save class files is on. Where
are the class files located?
Any ideas?
Cheers,
Dave
On Fri, 26 Oct 2007 18:11:40 -0400
"Brian Kotek" <[EMAIL PROTECTED]> wrote:
You need to make sure you're purging everything at the same time:
delete all of the generated files
purge the template cache in the CF administrator (sometimes this
helps)
perform a full reload of the application-scoped data
On 10/26/07, David Phipps <[EMAIL PROTECTED]> wrote:
Hi,
I recently added a new field to the database on our development
version of
a
site using Reactor. Reactor is in development mode and I reset the
application. When I look in the Record folder and look at the Record
cfc I
can see the getnotes method. However when I try to access it I get:
"The method 'getnotes' could not be found in component..."
It is definitely in the component yet when I dump the object it is
not
listed as one of the methods.
reactor is stored in the application scope and my reinit code should
be
clearing this but even after deleting all the project files and
reiniting
the app. I am still getting the error.
Is there anything else I need to do to force a refresh of reactor to
pick
up
the new code?
Cheers,
Dave
_______________________________________________________________________
David Phipps
Director, Chapel Studios
T +44 (0)20 7100 6980 F +44 (0)20 7100 6981 M +44 (0)7765 240899
New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
http://www.chapel-studios.co.uk
_______________________________________________________________________
The Chapel Studios group of companies are registered in England.
'Chapel
Studios' and the Chapel Studios logo are registered trademarks of
Chapel
Studios. The information in this email is confidential, intended
solely
for
the addressee, and may be legally privileged. If you are not the
addressee
or authorized to receive this for the addressee, you must not use,
copy,
disclose or take any action based upon this message or any
information
herein. If you have received this message in error, please advise
the
sender immediately by reply e-mail.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
_______________________________________________________________________
David Phipps
Director, Chapel Studios
T +44 (0)20 7100 6980 F +44 (0)20 7100 6981 M +44 (0)7765 240899
New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
http://www.chapel-studios.co.uk
_______________________________________________________________________
The Chapel Studios group of companies are registered in England. 'Chapel
Studios' and the Chapel Studios logo are registered trademarks of Chapel
Studios. The information in this email is confidential, intended solely for
the addressee, and may be legally privileged. If you are not the addressee
or authorized to receive this for the addressee, you must not use, copy,
disclose or take any action based upon this message or any information
herein. If you have received this message in error, please advise the
sender immediately by reply e-mail.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --