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
Niko Wicaksono
a042d20c22
Use `hasAttribute()` instead to avoid code duplication
11 years ago
Qiang Xue
4727ac8f1d
Refactored the feature of transactional operations.
11 years ago
Qiang Xue
6823fdedaf
Fixes #717 : Added ActiveRecord::hasAttribute()
11 years ago
creocoder
c091248e0d
ActiveRecord::getNamespacedClass() call style
11 years ago
creocoder
02581c59e7
Make ActiveRecord::getNamespacedClass() static
11 years ago
Qiang Xue
a4239efa7c
Fixes #637 .
11 years ago
Qiang Xue
dc2843a2d7
Fixes #622 .
11 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
Qiang Xue
abd3d827a2
refactoring.
12 years ago
Qiang Xue
6dd495b65f
Added init and afterFind events to AR.
...
Implemented scope support.
12 years ago
Qiang Xue
ed8b795295
renamed exception classes.
12 years ago
Qiang Xue
b51d347465
Added count, average, sum, min, max, scalar methods to ActiveQuery.
...
Added support for scopes defined in AR classes.
12 years ago
Qiang Xue
9b62fb6786
DB cleanup.
12 years ago