When trying to execute EntitySave("publications",arguments); .. I get the following error.
ids for this class must be manually assigned before calling save(): publications
I canβt understand why .. My primary database keys are configured correctly, and I have setter = false these properties in my CFC. I found that this error causes a Google search, but nothing indicates what causes my problem here.
Here are my CFCs. Any guidance on what I'm doing wrong is appreciated. Thanks for the heaps in advance!
Publications.cfc
component persistent="true" table="publications" hint="Publications"{ property name="id" fieldtype="id" setter="false"; property name="typeid" omrtype="int"; property name="name" ormtype="string"; property name="dateScheduled" ormtype="date" ; property name="tstamp" ormtype="date"; property name="Article" fieldtype="one-to-many" cfc="publicationArticles" fkcolumn="publicationid"; }
publicationArticles.cfc
component persistent="true" table="publicationArticles" hint="Publications"{ property name="id" fieldtype="id" setter="false" ; property name="typeid" ormtype="int"; property name="title" ormtype="string" ; property name="status" ormtype="boolean"; property name="publication" fieldtype="many-to-one" cfc="publications" fkcolumn="publicationid" ; }
publicationTypes.cfc
component persistent="true" table="publicationTypes" hint="Publicatin Type - Lookup"{ property name="id" fieldtype="id" setter="false" ; property name="description" ormtype="string"; property name="publications" fieldtype="one-to-many" cfc="publications" fkcolumn="typeid" ; }
Jason
source share