Sounds like maybe there's no record in car.workStatus with an id of 5.

Is there?

On Sat, Nov 22, 2008 at 5:31 AM, Gavin Baumanis <[EMAIL PROTECTED]> wrote:
>
> Hi Gang,
>
> I'll provide all the particulars below - but ultimately there I am
> having an issue with saving my new record.
>
> I have found this;
>
> Which seems to be what my issue is - but I need a little hand-holding;
> could I not just use cascadeSave?
>
> http://groups.google.com/group/transfer-dev/browse_thread/thread/6a1974b6a4ae55bd
>
>
>
> <!-- transfer xml -->
> <object name="generalCAR" table="tbl_CAR">
>        <id name="id_tbl_car" type="numeric" generate="false" />
>        <manytoone name="workStatus">
>                <link to="car.workStatus" column="workStatusId" />
>        </manytoone>
>        ...
> </object>
>
> and in my post form processing I currently have;
> <cfset session.generalCAR.setworkStatus(application.transfer.get
> ("car.workStatus", 5)) />
>
> After validation I then simply have the following for saving;
> application.transfer.save(session.generalCAR);
>
> But get the following error;
>
> The ManyToOne TransferObject is not persisted.
> In TransferObject 'car.generalCAR' manytoone 'car.workStatus' has not
> been persisted in the database.
>
>
> Thanks once again!
>
>
> >
>



-- 
Bob Silverberg
www.silverwareconsulting.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to