Ticket #424 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Scaffolds & Persistent CFC's relationships

Reported by: olly.p.jones@… Owned by:
Priority: normal Milestone: 3.2
Version: 3.1.299 Severity: normal
Keywords: @cfc scaffolds ORM Cc:

Description

I am trying to use directories in my model to organise my persistent cfc's. However when using the @cfc annotation to define a relationship model-glue does not seem to like me specifying the cfc with dot-notation. The reason I think it may be a MG bug is that I can use the fully qualified cfc name when I perform an ORMReload() and then change the @cfc to the name of the CFC and the MG scaffolds will then work.

Apologies if this is an error of mine.

MG Version: 3.2.750

Change History

Changed 15 years ago by olly.p.jones@…

Please let me know if I am wrong here but I made a change that seems to have fixed the issue: Line 222 of ModelGlue?\gesture\modules\orm\cform\cfORMAdapter.cfc From: var entity = EntityNew?(arguments.entityName); To: var entity = EntityNew?(ListGetAt?(arguments.entityName,ListLen?(arguments.entityName,'.'),'.'));

Changed 15 years ago by DanWilson

  • status changed from new to closed
  • resolution set to fixed

Olly,

I've updated the code that handles this functionality. Please give this a whirl and see if it fixes your specific issues.

I'm going to email you the code right now.

DW

Note: See TracTickets for help on using tickets.