Copy link to clipboard
Copied
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:
id | 1 |
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>
id | 1 |
firmenname | Test 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
Copy link to clipboard
Copied
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