Table1::finder PHP Method

finder() public static method

public static finder ( $class = __CLASS__ )
    public static function finder($class = __CLASS__)
    {
        return parent::finder($class);
    }

Usage Example

 function testBelongsTo()
 {
     $obj = Table1::finder()->withObject1()->findAll();
     $this->assertEqual(count($obj), 3);
     $this->assertEqual($obj[0]->id, '1');
     $this->assertEqual($obj[1]->id, '2');
     $this->assertEqual($obj[2]->id, '3');
     $this->assertEqual($obj[0]->object1->id, '1');
     $this->assertEqual($obj[1]->object1->id, '2');
     $this->assertEqual($obj[2]->object1->id, '2');
 }
Table1