Alexander Kochetov
a1deac81c3
\yii\db\ActiveRecord updated
2014-01-09 08:01:08 +04:00
Alexander Kochetov
fba0e04365
ActiveRecord::tableName() comment fixed
2014-01-09 07:47:39 +04:00
Alexander Kochetov
dda9fec95e
ActiveRecord::tableName() hardcoded prefix fix
2014-01-09 06:59:22 +04:00
Carsten Brandt
43f19e8aee
use andWhere() in AR::find() to work properly with default scope
...
fixes #1469
2013-12-12 12:07:28 +01:00
Alexander Makarov
26767735dc
Renamed byte methods, moved path methods back to StringHelper
2013-12-04 14:26:47 +01:00
Alexander Makarov
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
2013-12-04 09:48:01 +01:00
Qiang Xue
73442fb12a
doc fix.
2013-11-30 15:51:20 -05:00
Carsten Brandt
c3eb4d926c
created BaseActiveRecord
2013-11-29 21:28:27 +01:00
Carsten Brandt
83527e85ca
made Model::attributes() non static again
...
- allows to have dynamic definition of attributes depended on the
instance
- there was no real need for it to be static. Places that used it static
have been refactored.
fixes #1318
2013-11-28 01:01:48 +01:00
Carsten Brandt
324e10694d
updated sphinx active record with changes from DB AR
2013-11-26 01:48:52 +01:00
Carsten Brandt
084f6666f1
Merge branch 'master' into elasticsearch
...
* master:
fixed broken sphinx AR::attributes() declaration
updated properties of extensions
fixed cubrid limit
added redis Session
allow redis connection to be configure directly in cache
removed unneeded setting.
refactored redis cache.
Conflicts:
extensions/redis/README.md
2013-11-25 15:49:06 +01:00
Carsten Brandt
8be4f3778a
updated properties of extensions
2013-11-25 15:33:59 +01:00
Carsten Brandt
f017ba357f
refactored unit tests. put common AR tests in trait
2013-11-24 19:18:16 +01:00
Carsten Brandt
e15860c3fa
more on elasticsearch Query interface added facet search
2013-11-24 00:30:36 +01:00
Carsten Brandt
c6347d6d01
polished elasticsearch AR api, added mget and fixed AR::equals()
2013-11-23 15:26:00 +01:00
Qiang Xue
a07facf434
Refactored hasMany and hasOne so that they support cross-DBMS relationship.
2013-11-22 20:47:39 -05:00
Carsten Brandt
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
2013-11-22 18:44:22 +01:00
Carsten Brandt
bc4324c041
Merge branch 'master' into redis
...
* master: (613 commits)
fixed typo
Fixes #1222 : refactored jui/Widget, intorduced jui/Slider and jui/SliderInput
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Added example for dividers to bootstrap Nav
Checkboxlist documentation fix
Added "Using controller action to render errors"
Fix doc
Renamed DetailView attribute type to format
encode email in Formatter
Added default status code setting.
"yii\swiftmailer\Mailer" transport setup has been advanced to support constructor arguments and plugins.
fix rbac select statement
Comments cleanup.
Reverted closeButton
Nomenclature and code realignment.
better nginx config
guide about using bootstrap less files
Include Schema in new migrations by default
...
Conflicts:
framework/yii/db/ActiveRecord.php
framework/yii/db/ActiveRelation.php
tests/unit/data/config.php
2013-11-22 15:04:08 +01:00
Carsten Brandt
77840adf65
Made ActiveRecord::isPrimaryKey() public
...
+ added tests and fixed behavior
2013-11-16 16:53:50 +01:00
Qiang Xue
42a58870fe
moved db interfaces and traits back to yii/db.
2013-11-14 22:01:26 -05:00
Carsten Brandt
65338972c7
refactored ActiveRecord classes to use Interfaces and traits
...
this allows us to implement other activerecord implementations based on
NoSQL dbms
2013-11-13 18:42:50 +01:00
Carsten Brandt
c8c7f59d69
Merge branch 'master' into db-traits
...
Updated AR classes with the latest changes from master to go on with
separation of AR query classes in traits.
Conflicts:
framework/yii/db/ActiveQuery.php
framework/yii/db/ActiveRecord.php
framework/yii/db/ActiveRelation.php
2013-11-13 17:00:52 +01:00
slavcodev
b0b1c27c85
Fix phpDoc var tag format
2013-11-12 06:21:04 +02:00
Taras Gudz
9b95a81b0c
Fixed the rest phpDocs [skip ci]
2013-11-12 03:13:37 +00:00
Carsten Brandt
913eb62294
updated phpdoc and fixed generator read/write-only annotation
2013-11-08 12:24:03 +01:00
Carsten Brandt
0bc8cbf158
php-doc
...
[ci skip]
2013-11-07 11:18:16 +01:00
Carsten Brandt
c4468ac315
forgot to remove strtolower from __get and __unset
2013-11-07 11:09:35 +01:00
Carsten Brandt
a23c54acb8
made relation names in AR case sensitive
2013-11-07 10:39:35 +01:00
Carsten Brandt
90839ceb5d
Proposal for accessing populated relations
...
fixes #842
- allows checking whether a relation has been populated
- getting a list of relation names that have been populated
- getting all populated relation data
todo:
- [] add phpdoc
2013-11-03 02:10:17 +01:00
Carsten Brandt
d8b94d647b
made AR attribute manipulation behave consistent to hasAttribute()
2013-11-03 01:45:20 +01:00
Alexander Mohorev
18fbd7510a
Missing return statement
2013-11-02 16:12:28 +03:00
Carsten Brandt
0146596647
add relationClassName to AR to allow different relation classes
...
... for different dbms
2013-10-29 12:41:24 +01:00
Qiang Xue
6c6dd01122
Fixes #1052 : unset related data when ActiveRecord::refresh() is called.
2013-10-23 21:39:36 -04:00
Qiang Xue
fb8e818204
Dropped support for supporting default namespace for classes of related models.
2013-10-21 23:55:20 -04:00
Alexander Makarov
1f6a823073
Short array syntax
2013-10-18 20:52:38 +04:00
Carsten Brandt
6133133ec0
added dependency in db\AR -> redis\AR needs to be refactored later
...
this is to make relations work. tests are passing now.
refactoring needed to remove the dependency
2013-09-25 12:26:40 +02:00
Carsten Brandt
c6c164dc71
made link() and unlink() compatible with NoSQL AR
2013-09-25 11:40:59 +02:00
Carsten Brandt
77a3eec343
ActiveRecord::isPrimaryKey() made public
2013-09-24 19:02:14 +02:00
Qiang Xue
a2b4ef0f82
Fixes #876 .
2013-09-14 08:35:37 -04:00
Qiang Xue
c6f4dac249
Refactored AR code.
2013-09-11 13:41:47 -04:00
Carsten Brandt
ca69ef09d4
update of @property annotations
2013-08-28 14:59:52 +02:00
Niko Wicaksono
a042d20c22
Use hasAttribute() instead to avoid code duplication
2013-08-10 02:31:49 +07:00
Qiang Xue
4727ac8f1d
Refactored the feature of transactional operations.
2013-08-07 22:22:23 -04:00
Qiang Xue
6823fdedaf
Fixes #717 : Added ActiveRecord::hasAttribute()
2013-08-04 07:59:28 -04:00
creocoder
c091248e0d
ActiveRecord::getNamespacedClass() call style
2013-08-01 17:19:44 +04:00
creocoder
02581c59e7
Make ActiveRecord::getNamespacedClass() static
2013-07-31 18:56:36 +04:00
Qiang Xue
a4239efa7c
Fixes #637 .
2013-07-18 08:05:09 -04:00
Qiang Xue
dc2843a2d7
Fixes #622 .
2013-07-14 19:03:43 -04:00
Alexander Kochetov
bb2e19faa5
ActiveRecord::setOldAttribute() bugfix
2013-06-22 21:41:11 +04:00
Alexander Kochetov
8de3ffabfe
ActiveRecord::setAttribute() bugfix
2013-06-22 18:12:51 +04:00