public function testUpdate() { \Foo\Bar\Map\NamespacedBookTableMap::getTableMap(); $book = new \Foo\Bar\NamespacedBook(); $book->setTitle('foo'); $book->setISBN('something'); $book->save(); $book->setTitle('bar'); $book->save(); $this->assertFalse($book->isNew()); }
/** * @dataProvider conditionsForTestReplaceNamesWithNamespaces */ public function testReplaceNamesWithNamespaces($origClause, $columnPhpName = false, $modifiedClause) { $c = new TestableModelCriteriaWithNamespace('bookstore_namespaced', 'Foo\\Bar\\NamespacedBook'); $this->doTestReplaceNames($c, \Foo\Bar\Map\NamespacedBookTableMap::getTableMap(), $origClause, $columnPhpName = false, $modifiedClause); }