Book a Demo

Author Topic: [Code Template] Changing case of Linked Attribute  (Read 3959 times)

bclark

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
[Code Template] Changing case of Linked Attribute
« on: August 04, 2006, 03:54:12 pm »
I'd like to change the capitalization of my linked attribute when generating source.

Class AbcClass   ---> Association --> Class XyzClass

Source generated for PHP

class AbcClass
{
   var m_XyzClass;
}

I'd like it to read

class Abc
{
   var xyzClass;  <== notice initial lower case
}

In the "Generate Code" dialog, click advanced.
In the Object Options, select Attribute/Operations
Under the "Attribute Specifications" section I tried changing the "Default name for associated attrib:" to $linkClass but the source generated is:

Class AbcClass
{
   var XyzClass;
}

How can I get this to change?  Better yet, how can I get it to use the Association Link NAME -- not class.

Both answers would be great.  If there's any documentation on EA code template syntax, I'd be interested in that as well.

Thanks.