- Timestamp:
- 10/26/09 12:48:25 (9 months ago)
- Files:
-
- fActiveRecord.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fActiveRecord.php
r720 r723 Hide Line Numbers 16 16 * @link http://flourishlib.com/fActiveRecord 17 17 * 18 * @version 1.0.0b46 18 * @version 1.0.0b47 19 * @changes 1.0.0b47 Changed `::associate{RelatedRecords}()`, `::link{RelatedRecords}()` and `::populate{RelatedRecords}()` to allow for method chaining [wb, 2009-10-22] 19 20 * @changes 1.0.0b46 Changed SQL statements to use value placeholders and identifier escaping [wb, 2009-10-22] 20 21 * @changes 1.0.0b45 Added support for `!~`, `&~`, `><` and OR comparisons to ::checkConditions(), made object handling in ::checkConditions() more robust [wb, 2009-09-21] … … 788 789 // This handles one-to-many and many-to-many relationships 789 790 if ($plural) { 790 return fORMRelated::associateRecords($class, $this->related_records, $subject, $records, $route); 791 } 791 fORMRelated::associateRecords($class, $this->related_records, $subject, $records, $route); 792 792 793 793 // This handles one-to-one relationships 794 return fORMRelated::associateRecord($class, $this->related_records, $subject, $records, $route); 794 } else { 795 fORMRelated::associateRecord($class, $this->related_records, $subject, $records, $route); 796 } 797 return $this; 795 798 796 799 case 'build': … … 841 844 842 845 if (isset($parameters[0])) { 843 return fORMRelated::linkRecords($class, $this->related_records, $subject, $parameters[0]); 844 } 845 return fORMRelated::linkRecords($class, $this->related_records, $subject); 846 fORMRelated::linkRecords($class, $this->related_records, $subject, $parameters[0]); 847 } else { 848 fORMRelated::linkRecords($class, $this->related_records, $subject); 849 } 850 return $this; 846 851 847 852 case 'list': … … 874 879 $subject = fGrammar::camelize($subject, TRUE); 875 880 876 return fORMRelated::populateRecords($class, $this->related_records, $subject, $route); 881 fORMRelated::populateRecords($class, $this->related_records, $subject, $route); 882 return $this; 877 883 878 884 case 'tally':
