<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Adding a new project object module</title>
  <link>http://www.activecollab.com/forums/topic/2541/</link>
  <description>Recent posts on topic: Adding a new project object module</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sat, 05 Jul 2008 19:23:17 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/11940/#post11940</link>
    <guid>http://www.activecollab.com/forums/post/11940/#post11940</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>If Sprocket is also project object model it as ProjectObject and use parent_id field for relation with a Widget. We use same approach when connecting Categories and Tickets (or Discussion or Files). If Sprocket is really specific create a new table, create model classes and connect the with Widget through foreign key.<br />
<br />
Analyze BaseUser and BaseUsers classes for example to see how base model classes are defined. </p>]]></description>
    <pubDate>Mon, 25 Feb 2008 17:03:06 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11939/#post11939</link>
    <guid>http://www.activecollab.com/forums/post/11939/#post11939</guid>
    <title>Post #1 by ssanders</title>
    <dc:creator>ssanders</dc:creator>
    <description><![CDATA[<p>I need the ability to attach more complex objects to my projects. I am currently managing these objects using some software developed in-house for this purpose. Since I am moving towards using activeCollab for everything project related, I would like to roll these objects into activeCollab. I assume that the easiest way to do this would be to write a new module for each type of complex object I would like to be able to attach to a project. The models will extend ProjectObject and ProjectObjects and the controller will extend ProjectController. So far, I have had no problems setting this up, but adding more relational data to this complex object is a problem. I understand that the project_objects table offers a limited set of fields I can use for my object, but what if an instance of this complex project object has many other objects? For example, if a project has a Widget object and each Widget has many Sprockets, how do I model the sprockets? Is there a well-defined method for adding new tables to the activeCollab database and mapping models to them? Any info or suggestions about creating a new module that uses multiple models would be appreciated.<br />
<br />
Thanks,<br />
Scott</p>]]></description>
    <pubDate>Mon, 25 Feb 2008 15:22:52 CST</pubDate>
  </item>
</channel>
</rss>