"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/db/ActiveRecordInterface.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

ActiveRecordInterface.php  (yii2-2.0.36):ActiveRecordInterface.php  (yii2-2.0.37)
skipping to change at line 167 skipping to change at line 167
* *
* The method accepts: * The method accepts:
* *
* - a scalar value (integer or string): query by a single primary key valu e and return the * - a scalar value (integer or string): query by a single primary key valu e and return the
* corresponding record (or `null` if not found). * corresponding record (or `null` if not found).
* - a non-associative array: query by a list of primary key values and ret urn the * - a non-associative array: query by a list of primary key values and ret urn the
* first record (or `null` if not found). * first record (or `null` if not found).
* - an associative array of name-value pairs: query by a set of attribute values and return a single record * - an associative array of name-value pairs: query by a set of attribute values and return a single record
* matching all of them (or `null` if not found). Note that `['id' => 1, 2]` is treated as a non-associative array. * matching all of them (or `null` if not found). Note that `['id' => 1, 2]` is treated as a non-associative array.
* Column names are limited to current records table columns for SQL DBMS , or filtered otherwise to be limited to simple filter conditions. * Column names are limited to current records table columns for SQL DBMS , or filtered otherwise to be limited to simple filter conditions.
* - a yii\db\Expression: The expression will be used directly. (@since 2.0 .37)
* *
* That this method will automatically call the `one()` method and return an [[ActiveRecordInterface|ActiveRecord]] * That this method will automatically call the `one()` method and return an [[ActiveRecordInterface|ActiveRecord]]
* instance. * instance.
* *
* > Note: As this is a short-hand method only, using more complex condition s, like ['!=', 'id', 1] will not work. * > Note: As this is a short-hand method only, using more complex condition s, like ['!=', 'id', 1] will not work.
* > If you need to specify more complex conditions, use [[find()]] in combi nation with [[ActiveQuery::where()|where()]] instead. * > If you need to specify more complex conditions, use [[find()]] in combi nation with [[ActiveQuery::where()|where()]] instead.
* *
* See the following code for usage examples: * See the following code for usage examples:
* *
* ```php * ```php
skipping to change at line 234 skipping to change at line 235
* - a scalar value (integer or string): query by a single primary key valu e and return an array containing the * - a scalar value (integer or string): query by a single primary key valu e and return an array containing the
* corresponding record (or an empty array if not found). * corresponding record (or an empty array if not found).
* - a non-associative array: query by a list of primary key values and ret urn the * - a non-associative array: query by a list of primary key values and ret urn the
* corresponding records (or an empty array if none was found). * corresponding records (or an empty array if none was found).
* Note that an empty condition will result in an empty result as it will be interpreted as a search for * Note that an empty condition will result in an empty result as it will be interpreted as a search for
* primary keys and not an empty `WHERE` condition. * primary keys and not an empty `WHERE` condition.
* - an associative array of name-value pairs: query by a set of attribute values and return an array of records * - an associative array of name-value pairs: query by a set of attribute values and return an array of records
* matching all of them (or an empty array if none was found). Note that `['id' => 1, 2]` is treated as * matching all of them (or an empty array if none was found). Note that `['id' => 1, 2]` is treated as
* a non-associative array. * a non-associative array.
* Column names are limited to current records table columns for SQL DBMS , or filtered otherwise to be limted to simple filter conditions. * Column names are limited to current records table columns for SQL DBMS , or filtered otherwise to be limted to simple filter conditions.
* - a yii\db\Expression: The expression will be used directly. (@since 2.0 .37)
* *
* This method will automatically call the `all()` method and return an arra y of [[ActiveRecordInterface|ActiveRecord]] * This method will automatically call the `all()` method and return an arra y of [[ActiveRecordInterface|ActiveRecord]]
* instances. * instances.
* *
* > Note: As this is a short-hand method only, using more complex condition s, like ['!=', 'id', 1] will not work. * > Note: As this is a short-hand method only, using more complex condition s, like ['!=', 'id', 1] will not work.
* > If you need to specify more complex conditions, use [[find()]] in combi nation with [[ActiveQuery::where()|where()]] instead. * > If you need to specify more complex conditions, use [[find()]] in combi nation with [[ActiveQuery::where()|where()]] instead.
* *
* See the following code for usage examples: * See the following code for usage examples:
* *
* ```php * ```php
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)