Select the types of activity you want to include in your feed.
Gh98 - squash PHP warning "Indirect modification of overloaded property ... has no effect". Cause probably is that PHP 5.3 __get is no longer by reference (by default).
···199199 *
200200 * This is the opposite of {@link attr_accessible $attr_accessible} and the format
201201 * for defining these are exactly the same.
202202- *
202202+ *
203203 * If the attribute is both accessible and protected, it is treated as protected.
204204 *
205205 * @var array
···503503 $to = $item['to'];
504504 if ($this->$to)
505505 {
506506- $val =& $this->$to->$delegated_name;
506506+ $val =& $this->$to->__get($delegated_name);
507507 return $val;
508508 }
509509 else
+23-1
lib/php-activerecord/test/ActiveRecordTest.php
···365365 $this->assert_null($event->state);
366366 }
367367368368- public function test_delegate_setter()
368368+ public function test_delegate_set_attribute()
369369 {
370370 $event = Event::first();
371371 $event->state = 'MEXICO';
372372 $this->assert_equals('MEXICO',$event->venue->state);
373373+ }
374374+375375+ public function test_delegate_getter_gh_98()
376376+ {
377377+ Venue::$use_custom_get_state_getter = true;
378378+379379+ $event = Event::first();
380380+ $this->assert_equals('ny', $event->venue->state);
381381+ $this->assert_equals('ny', $event->state);
382382+383383+ Venue::$use_custom_get_state_getter = false;
384384+ }
385385+386386+ public function test_delegate_setter_gh_98()
387387+ {
388388+ Venue::$use_custom_set_state_setter = true;
389389+390390+ $event = Event::first();
391391+ $event->state = 'MEXICO';
392392+ $this->assert_equals('MEXICO#',$event->venue->state);
393393+394394+ Venue::$use_custom_set_state_setter = false;
373395 }
374396375397 public function test_table_name_with_underscores()