Prev | Current Page 573 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

db.Object class. Each object must specify the fields as detailed in
Table 11 - 7 . Aside from the RELATIONS method, you also need to supply the getters and setters detailed
in each object in the array returned from the RELATIONS method.
298
Part II: Server Side, JavaScript, and Flash: Oh My!
Table 11-7
Field Description
prop The name of a dynamic getter and setter used to retrieve a reference to the object
containing the data from the secondary table
key The name of the field from the primary table containing the unique id of the record to
retrieve from the secondary table
manager The Manager object used to retrieve the secondary table data
When assigning objects through reference to an existing record, the object you assign must also represent
an existing record. In the previous example, the newly created Chapter record was assigned to the
Author object after it was inserted into the database. This is important, as the unique identifier of the
Chapter object is required to successfully update the Author object ??™ s associated record.


Pages:
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585