public function testAddUsingAliasTrueAliasTwice() { $c1 = new ModelCriteria('bookstore', 'Propel\\Tests\\Bookstore\\Book'); $c1->setModelAlias('b', true); $c1->addUsingAlias(BookTableMap::COL_TITLE, 'foo'); $c1->addUsingAlias(BookTableMap::COL_TITLE, 'bar'); $c2 = new ModelCriteria('bookstore', 'Propel\\Tests\\Bookstore\\Book'); $c2->setModelAlias('b', true); $c2->add('b.title', 'foo'); $c2->addAnd('b.title', 'bar'); $this->assertEquals($c2, $c1, 'addUsingalias() translates to addAnd() when the table already has a condition on the column'); }