S
S
Sergey2015-06-11 13:28:14
Yii
Sergey, 2015-06-11 13:28:14

How to apply in CDbCriteria yii AND?

How to make a selection by two parameters
is
$criteria->condition = 'type = 2';
For example, I also want to add aptype = 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
George, 2015-06-11
@alekskondr

$criteria->condition = 'type = 2 and aptype = 1';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question