Browse Source

created BaseActiveRecord

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
c3eb4d926c
  1. 1038
      framework/yii/db/ActiveRecord.php
  2. 9
      framework/yii/db/ActiveRecordInterface.php
  3. 1229
      framework/yii/db/BaseActiveRecord.php

1038
framework/yii/db/ActiveRecord.php

File diff suppressed because it is too large Load Diff

9
framework/yii/db/ActiveRecordInterface.php

@ -93,6 +93,15 @@ interface ActiveRecordInterface
public static function find($q = null);
/**
* Creates an [[ActiveQueryInterface|ActiveQuery]] instance.
* This method is called by [[find()]] to start a SELECT query.
* You may override this method to return a customized query (e.g. `CustomerQuery` specified
* written for querying `Customer` purpose.)
* @return ActiveQueryInterface the newly created [[ActiveQueryInterface|ActiveQuery]] instance.
*/
public static function createQuery();
/**
* Updates records using the provided attribute values and conditions.
* For example, to change the status to be 1 for all customers whose status is 2:
*

1229
framework/yii/db/BaseActiveRecord.php

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save