On Tuesday 30 May 2006 19:25, Brian Kotek wrote:
> It's in the DAO object created by Reactor (not the empty custom DAO
> object), along with methods for save(), delete(), update(), and create().
Ah ha, OK.
So I need to create a TO and then ask the DAO if that exists ? That seems
kinda long winded.
Plus, at least one of my DAO's is missing the method:
[EMAIL PROTECTED]:~/Projects/reactor> grep -i exist
project/ArchDevThing/Dao/fileDao.cfc
[EMAIL PROTECTED]:~/Projects/reactor>
and yet
[EMAIL PROTECTED]:~/Projects/reactor> grep -i exist
project/ArchDevThing/Dao/userDao.cfc
<cfif Len(arguments.to.HLGUID) AND exists(arguments.to)>
<cffunction name="exists" access="public" hint="I check to see if the
user object exists." output="false" returntype="boolean">
*eh* ?!?
Both tables have a PK defined, it's a plain varchar2 in the case that works
and an int(10) unsigned in the other. The non-working case's column is also
auto_increment - could this be confusing things ?
I added the following debug to the xsl/dao.project.xsl XSLT around line 38:
<!--- exists: <xsl:value-of select="count(object/fields/[EMAIL PROTECTED]
= 'true'])" />-<xsl:value-of select="count(object/fields/[EMAIL PROTECTED] =
'true'])" /> --->
<xsl:if test="count(object/fields/[EMAIL PROTECTED] = 'true']) > 0
and count(object/fields/[EMAIL PROTECTED] = 'true']) = 0">
and it spits out
<!--- exists: 1-1 --->
in the generated content. So I'm off to find out where object/fields/field
comes from and why identity is 1, wish me luck :-)
--
Tom Chiverton
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at St
James's Court Brown Street Manchester M2 2JF. A list of members is available
for inspection at the registered office. Any reference to a partner in relation
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law
Society.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must not
read it and must not use any information contained in nor copy it nor inform
any person other than Halliwells LLP or the addressee of its existence or
contents. If you have received this email in error please delete it and notify
Halliwells LLP IT Department on 0870 365 8008.
For more information about Halliwells LLP visit www.halliwells.com.
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/