Alexander Makarov
b66427f8c7
Fixes #2726 : ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema
11 years ago
Grant Furgiuele
ed2885c31d
Changed comment again to actually be correct. This is also consistent with the draft of the definitive guide.
11 years ago
Grant Furgiuele
bc91853e3f
Modified example in DataReader usage comment to reference a DB Command function which accepts a SQL string argument.
11 years ago
Grant Furgiuele
cf42b74f7c
Changed comment again to actually be correct. This is also consistent with the draft of the definitive guide.
11 years ago
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
Qiang Xue
b9287abf81
minor fixes.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Grant Furgiuele
d5c3ac8576
Modified example in DataReader usage comment to reference a DB Command function which accepts a SQL string argument.
11 years ago
Qiang Xue
5a61ee91be
Fixed test break.
11 years ago
Qiang Xue
9ff8b0f903
Fixes #2571 : Fixed the bug that batchInsert will fail for SQLite if the values contain null or boolean false;
...
Fixes #2683 : Fixed the bug that batchInsert will fail for MySQL if the values contain boolean false.
11 years ago
Qiang Xue
34cfb356e9
Fixes #2713 : using relations defined in behavior may throw exception in lazy loading.
11 years ago
Qiang Xue
aaa4e429a4
Fixes #2687 : table alias may not be respected when specified in relation query.
11 years ago
Carsten Brandt
6fff5662df
better use @see for See in phpdoc
11 years ago
Qiang Xue
bcf5b4644e
Fixes #2687 : ActiveQuery::joinWith() has problem when the query is used twice.
11 years ago
Qiang Xue
1af04e1e1b
Fixes #2661 : Added boolean column type support for SQLite
11 years ago
Qiang Xue
4f8c037a21
fixed unset.
11 years ago
Qiang Xue
9b8ffdfacc
Fixes #2653 : Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue)
11 years ago
Qiang Xue
11baf61977
Fixed unsetting relation bug.
11 years ago
Qiang Xue
3f42d5826a
REST wip.
11 years ago
Qiang Xue
993963bb94
reset batch query result when rewinding.
11 years ago
Carsten Brandt
f34a0c63a1
fixed phpdoc
11 years ago
Carsten Brandt
80cc310895
updated phpdoc references of BaseAR to the interface
...
fixes #2623
11 years ago
Alexander Makarov
12d4615039
Changed "and" to "&&"
11 years ago
AlexGx
6d72c6a723
fix code style
11 years ago
AlexGx
eaaa5b1bb5
fix code style
11 years ago
AlexGx
c6183fc205
fix typo double `;`, `Each PHP statement must be on a line by itself`
11 years ago
Alexander Mohorev
95ea1c20bb
code style. FOREACH
11 years ago
Alexander Mohorev
c7e8d8b900
@param , @var , @property and @return must declare types as boolean, integer, string, array or null
11 years ago
Carsten Brandt
56f52f87d2
fixed AR class docs, do not break comment
11 years ago
Qiang Xue
a2edf01c85
Delay joinWith till createCommand to correctly combine relation condition with primary condition.
11 years ago
Qiang Xue
9beba31fc0
rest WIP
11 years ago
Jacob Morrison
0e2b2fcbe6
Fix for logic Query::queryScalar uses to check for SELECT DISTINCT
11 years ago
Jacob Morrison
a3e128bb0b
Query::queryScalar wasn't making SELECT DISTINCT queries subqueries
11 years ago
Carsten Brandt
33d6acba25
Improved behavior support, fixes #2550
...
call hasMethod() instead of using method_exists
11 years ago
Qiang Xue
c79d233ea4
Fixes #2552 .
11 years ago
Carsten Brandt
d3d832a3bf
phpdoc fixes
11 years ago
Jacob Morrison
614bffb01a
Fixed issue with preventing from clearing events and behaviors on clone
11 years ago
Carsten Brandt
f9024dbec1
fixed Migration::execute() to use params correctly
11 years ago
Qiang Xue
3aa15b709f
CS fix.
11 years ago
Qiang Xue
ba2c35b894
Fixes #2482 .
11 years ago
Scott Tester
7ce4702426
Allow null values for fields in batchInsert
11 years ago
Carsten Brandt
26717e3e76
allow referencing the guide from API docs
11 years ago
Carsten Brandt
505762d49c
updated docs about active relation
11 years ago
Carsten Brandt
8f491f2836
moved `@include` tags of api docs directly into the class
11 years ago
Carsten Brandt
cb8237c1b7
merged ActiveQueryInterface and ActiveRelatioInterface
11 years ago
Carsten Brandt
098567ce16
fixed phpdoc errors and updated properties
11 years ago
Carsten Brandt
3b40d44909
made createQuery() config param optional
11 years ago
Carsten Brandt
1708a36d95
WIP merge ActiveRelation into ActiveQuery
...
allow extending only one class to add scopes, fixes #2146
TODO:
- [ ] adjust guide docs
- [ ] adjust README files of extensions
- [ ] finish work and fix test breaks
11 years ago
Qiang Xue
fb3b2f2c7d
Fixes #2490 : `yii\db\Query::count()` and other query scalar methods now properly handle queries with GROUP BY clause
11 years ago