Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Aug 02, 2011 Aug 02, 2011

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

342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 02, 2011 Aug 02, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources