Hello,
I am unable to find something like this in documentation provided for Propel Criteria in Symfony 1.4
The criteria, by default, is:
$this->Merchantss = MerchantsPeer::doSelect(new Criteria());
However, this selects all the fields in the table for 'Merchants'. I would only like to select a couple, lets say: id, name, category. How is it possible to do so through criteria?
I tried the following but it doesn't return an output:
$criteria = new Criteria();
$criteria->add(MerchantsPeer::NAME);
$criteria->add(MerchantsPeer::ID);
$criteria->add(MerchantsPeer::CATEGORY);
$this->Merchantss = MerchantsPeer::doSelect($criteria);
Thanks in advance