Skip to main content
Participating Frequently
August 2, 2011
Question

CF9 ORM Problem - Only one property of the cfc contains database values

  • August 2, 2011
  • 1 reply
  • 381 views

Hi, i am trying to get the realy cool cf9 orm feature running.

I already get a response from the database, but somehow i only get one property of my persistent cfc returned

with the values of the database, all other fields only contain a empty string.

First Case: My cfc:

<cfcomponent persistent="true" entityname="LieferantDTO" table="lieferant">     

    <cfproperty name="id" fieldtype="id" column="lieferant_id" generator="increment" >
    <cfproperty name="name" column="firmenname" type="string" fieldtype="column">
    <cfproperty name="stadt" fieldtype="column" type="string">
    <cfproperty name="skonto" fieldtype="column" type="string">
    <cfproperty name="mindestbestellwert" fieldtype="column" type="string">
    <cfproperty name="planlieferzeit" fieldtype="column" type="string">
</cfcomponent>

The dump:

id1
name[empty string]
stadt[empty string]
skonto[empty string]
mindestbestellwert[empty string]
planlieferzeit[empty string]

All fields are set to a value in the database.

The other strange thing is, if i change the cfc (i deleted the bold attribute column, and changed the bold attribute name😞

<cfcomponent persistent="true" entityname="LieferantDTO" table="lieferant">

    <cfproperty name="id" fieldtype="id" column="lieferant_id" generator="increment" >

      <cfproperty name="firmenname" type="string" fieldtype="column">

      <cfproperty name="stadt" fieldtype="column" type="string">

      <cfproperty name="skonto" fieldtype="column" type="string"><cfproperty name="mindestbestellwert" fieldtype="column" type="string">

      <cfproperty name="planlieferzeit" fieldtype="column" type="string">

</cfcomponent>

id1
firmennameTest firmname
stadt[empty string]
skonto[empty string]
mindestbestellwert[empty string]
planlieferzeit

[empty string]

I get my second value too... the others still missing...

Anyone has an idea what i am doing wrong?

The third column has exactly the same properties, but no value...

Thx in advance, Florian

    This topic has been closed for replies.

    1 reply

    NewFloAuthor
    Participating Frequently
    August 2, 2011

    I couldn't get it work manually so i played chicken and downloaded the auto cfc generator from sourceforge...

    Works quite well. But still don't get it. Someone had similar problems?

    thx, Florian