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
11 years ago
Carsten Brandt
c6c164dc71
made link() and unlink() compatible with NoSQL AR
11 years ago
Carsten Brandt
77a3eec343
ActiveRecord::isPrimaryKey() made public
11 years ago
Qiang Xue
a2b4ef0f82
Fixes #876 .
11 years ago
Qiang Xue
c6f4dac249
Refactored AR code.
11 years ago
Carsten Brandt
ca69ef09d4
update of @property annotations
11 years ago
Carsten Brandt
04a0ca5aab
revert accidental change in db ActiveRecord
11 years ago
Carsten Brandt
e3df19d984
Redis AR WIP
...
- introduced RecordSchema class for schema definition
11 years ago
Niko Wicaksono
a042d20c22
Use `hasAttribute()` instead to avoid code duplication
12 years ago
Qiang Xue
4727ac8f1d
Refactored the feature of transactional operations.
12 years ago
Qiang Xue
6823fdedaf
Fixes #717 : Added ActiveRecord::hasAttribute()
12 years ago
creocoder
c091248e0d
ActiveRecord::getNamespacedClass() call style
12 years ago
creocoder
02581c59e7
Make ActiveRecord::getNamespacedClass() static
12 years ago
Qiang Xue
a4239efa7c
Fixes #637 .
12 years ago
Qiang Xue
dc2843a2d7
Fixes #622 .
12 years ago
Alexander Kochetov
bb2e19faa5
ActiveRecord::setOldAttribute() bugfix
12 years ago
Alexander Kochetov
8de3ffabfe
ActiveRecord::setAttribute() bugfix
12 years ago
Alexander Kochetov
826c83c301
ActiveRecord::getNamespacedClass() correct PHP 5.3 code
12 years ago
resurtm
732e438473
Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic() method.
12 years ago
Qiang Xue
03e07f4340
cleaned up "use" statements.
12 years ago
Qiang Xue
2376730452
better check of existence of tables.
12 years ago
Carsten Brandt
0a5b7a5960
docs: Be explicitly clear about ActiveRecord::create()
12 years ago
Carsten Brandt
689080519e
Added support for previous exceptions
...
PHP supports exception stacks since 5.3 so we should use it.
Also Errorhandler is now able to display the stack: #297
12 years ago
Antonio Ramirez
641e6ee7cf
ported inflection methods from StringHelper to Inflector helper class
12 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
resurtm
4973838b69
Better argument name in the ActiveRecord::isOperationAtomic() method.
12 years ago
resurtm
944e1fc0fe
isOpAtomic → isOperationAtomic
12 years ago
resurtm
35688b327b
AR atomic scenarios fixes.
12 years ago
resurtm
a54c1cd684
Fixes #226 : atomic operations and transaction support in AR.
12 years ago
resurtm
c98628d42e
CS fixes.
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago
Carsten Brandt
776162b05e
created StringHelper::basename()
...
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
12 years ago
Anderson Müller
45e987d26c
Typo in isNewRecord property of ActiveRecord
12 years ago
Alexander Kochetov
e3f6faf575
&& => || fix
12 years ago
Alexander Kochetov
37f3a400cd
ActiveRecord::getRelation() bugfix
12 years ago
Alexander Kochetov
f12518f45c
ActiveRecord::insert() and ActiveRecord::update() refactoring
12 years ago
Qiang Xue
f3c17594c6
Fixes issue #155 .
12 years ago
Qiang Xue
2026d3824b
allow using existing column to store lock version.
12 years ago
Qiang Xue
c6a1327897
renamed lockVersion to optimisticLock
12 years ago
Qiang Xue
7de94d7fe9
Implemented optimistic locking for AR.
12 years ago
Qiang Xue
906e402ba8
ActiveRecord::update() and ActiveRecord::delete() now returns the number rows affected.
12 years ago
Qiang Xue
1fbf81be57
User WIP.
12 years ago
Qiang Xue
884977a724
renamed util to helpers.
12 years ago
Qiang Xue
5f774db6d1
sort WIP
12 years ago
Qiang Xue
4fdaab3560
updated file header.
12 years ago
Qiang Xue
f68bed0ccb
fixed exception.
12 years ago
Qiang Xue
8b2b7915b4
Renamed application to app.
12 years ago
Carsten Brandt
da0ef127b5
proof reading docs, fixed event order in AR
12 years ago
Qiang Xue
76b153a368
fixed event doc.
12 years ago
Qiang Xue
373e6a705e
refactored event declaration convention.
12 years ago