Qiang Xue
1072abb189
fixed test break.
2013-08-24 07:23:21 -04:00
Qiang Xue
28423486f1
model generator WIP
2013-08-24 07:10:18 -04:00
Qiang Xue
21b0cc73c4
fixed uninitialized pro issue.
2013-08-24 06:24:36 -04:00
Luciano Baraglia
369a5b7b94
Code style ultra-minimum-fix [skip ci]
2013-08-18 02:50:38 -03:00
Qiang Xue
d1c41fe144
changed to trace from info.
2013-08-10 12:22:32 -04: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
Qiang Xue
d1ebf65597
Fixed the issue that ActiveQuery::one() doesn't bring back related objects when asArray is true.
2013-08-02 15:07:23 -04:00
Qiang Xue
d135631f8e
Avoid logging db errors repeatedly.
2013-08-01 20:06:58 -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
5d9c23c67b
Added Sort::hasAttribute().
2013-07-30 12:01:02 -04:00
Ilya Antipenko
7fd68199e5
Fix SORT_DESC comment in Query.php
2013-07-29 17:40:58 +03:00
Qiang Xue
1f5d77790f
Fixed test breaks.
2013-07-22 10:54:43 -04:00
Qiang Xue
20bde29f58
Added typecasting for SQL insertion and update.
2013-07-22 10:47:22 -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
Qiang Xue
0cbb05d7a2
Added Query::indexBy
2013-07-11 10:04:54 -04:00
Qiang Xue
cace50cf3b
use raw SQL for profiling.
2013-07-10 11:01:14 -04:00
Qiang Xue
ee994efdf0
polishing debugger.
2013-07-09 12:33:14 -04:00
Qiang Xue
f03cdf0a47
renamed Command::queryRow() to queryOne().
2013-07-09 08:01:10 -04:00
Qiang Xue
c4a57a9f6c
Refactored Query and ActiveQuery.
...
Finished ActiveDataProvider.
2013-07-09 07:59:08 -04:00
Qiang Xue
aa568aacb5
Added support for using callables as "ActiveQuery::indexBy".
2013-07-08 21:25:00 -04:00
Qiang Xue
7fa240be65
initial implementation of Yii debugger.
2013-07-07 20:29:19 -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
Qiang Xue
c210de9d71
Merge pull request #556 from creocoder/php5.3-way-to-get-namespace
...
Model::formName() and ActiveRecord::getNamespacedClass() PHP 5.3 way
2013-06-19 05:13:52 -07:00
Alexander Kochetov
826c83c301
ActiveRecord::getNamespacedClass() correct PHP 5.3 code
2013-06-19 15:28:47 +04:00
resurtm
732e438473
Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic() method.
2013-06-18 23:02:21 +06:00
Qiang Xue
03e07f4340
cleaned up "use" statements.
2013-06-14 22:42:55 -04:00
Qiang Xue
4a0d2863f6
Fixes issue #421 : yii\db\Schema:refresh() does not clear all cache
2013-06-12 21:59:30 -04:00
Alexander Makarov
cc0fe1b02c
code style fixes
2013-06-13 02:16:48 +04:00
gsd
663fe63911
Update Schema.php
2013-06-11 15:38:06 +06:00
Carsten Brandt
1df859cfa1
typo: primarykey -> primaryKey
2013-06-10 23:17:41 +02:00
sergey Gonimar
9268e7d3ac
message fix
2013-06-10 20:34:18 +06:00
sergey Gonimar
2c02bc918d
migrate command, primary key
2013-06-10 20:30:31 +06:00
Qiang Xue
4efeedd314
Minor coding style fix.
2013-06-09 17:46:41 -04:00
Qiang Xue
44f78f04df
Merge pull request #519 from gevik/issue-466
...
Issue 466 (add/drop PrimaryKeys)
2013-06-09 14:41:08 -07:00
gevik
c338d4b76b
Updated code styling and added braces.
2013-06-09 23:23:51 +02:00
gevik
f667b5785b
- Added drop/add primary key methods to Command.php
...
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
2013-06-09 18:27:09 +02:00
Qiang Xue
864bf93679
coding style fix.
2013-06-09 09:41:32 -03:00
gevik
a977d8208e
Replaced dropConstraint with dropPrimarykey method.
2013-06-09 14:10:45 +02:00
gevik
3796db7d00
- Ported addPrimaryKey and created dropConstraint.
...
- The dropConstraint method can be used both for dropPrimaryKey and dropForeignKey
2013-06-09 11:00:15 +02:00
gevik
ec9dab11fa
[1] Redone missing code.
...
[2] Added empty line at the end of file
[3] Removed exception.
2013-06-09 00:04:37 +02:00
gevik
6fd74f5c27
Updated code style. braces on the same line for control statements.
2013-06-08 23:47:24 +02:00
gevik
19793f7af0
Removed unused columsn from find constraint sql. Fixed typo. Added extra schema check for when a foreign table is not in the same schema. Updated indentation to conform to other classes.
2013-06-08 21:51:15 +02:00
Qiang Xue
cf1e12ad11
Fixes issue #514 .
2013-06-08 12:37:39 -04:00
Qiang Xue
51972f2557
Merge pull request #505 from gevik/pgsql-driver
...
Pgsql driver implementation (update 4)
2013-06-07 14:13:39 -07:00
gevik
d07fd39f7e
Removed false exception catching.
2013-06-07 22:54:04 +02:00