@@ -714,7 +714,7 @@ public function chunk(array $conditions = [], array $params = [], int $size = 0,
714
714
/**
715
715
* This method queries your database to find first related object
716
716
* Ex.: find('postID = :postID AND isActive = :isActive', [':postID'=>10, ':isActive'=>1]);
717
- * Ex.: find(['condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC'], 'params'=> [':postID'=>10, ':isActive'=>1]);
717
+ * Ex.: find(['condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC'], [':postID'=>10, ':isActive'=>1]);
718
718
*
719
719
* @param mixed $conditions
720
720
* @param array $params
@@ -773,7 +773,7 @@ public function find($conditions = '', $params = [], $cacheId = false)
773
773
/**
774
774
* This method queries your database to find related objects by PK
775
775
* Ex.: findByPk($pk, 'postID = :postID AND isActive = :isActive', array(':postID'=>10, ':isActive'=>1));
776
- * Ex.: findByPk($pk, array('condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC'), 'params'=> array(':postID'=>10, ':isActive'=>1));
776
+ * Ex.: findByPk($pk, array('condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC'), array(':postID'=>10, ':isActive'=>1));
777
777
*
778
778
* @param string $pk
779
779
* @param mixed $conditions
@@ -832,7 +832,7 @@ public function findByPk($pk, $conditions = '', $params = [], $cacheId = false)
832
832
/**
833
833
* This method queries your database to find related objects by attributes
834
834
* Ex.: findByAttributes($attributes, 'postID = :postID AND isActive = :isActive', array(':postID'=>10, ':isActive'=>1));
835
- * Ex.: findByAttributes($attributes, array('condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC', 'limit'=>'0, 10'), 'params'=> array(':postID'=>10, ':isActive'=>1));
835
+ * Ex.: findByAttributes($attributes, array('condition'=>'postID = :postID AND isActive = :isActive', 'order|orderBy'=>'id DESC', 'limit'=>'0, 10'), array(':postID'=>10, ':isActive'=>1));
836
836
* Ex.: $attributes = array('first_name'=>$firstName, 'last_name'=>$lastName);
837
837
*
838
838
* @param array $attributes
0 commit comments