예제 #1
0
 public function testTable()
 {
     $b = new Behavior();
     $this->assertNull($b->getTable(), 'Behavior Table is null by default');
     $t = new Table();
     $t->setCommonName('fooTable');
     $b->setTable($t);
     $this->assertEquals($b->getTable(), $t, 'setTable() sets the name, and getTable() gets it');
 }
예제 #2
0
파일: Table.php 프로젝트: disider/Propel2
 protected function registerBehavior(Behavior $behavior)
 {
     $behavior->setTable($this);
 }