Commit Graph

1821 Commits

Author SHA1 Message Date
Carsten Brandt
9f12185362 elasticsearch ActiveRelation and activeQuery 2013-11-23 03:26:52 +01:00
Carsten Brandt
d8feaeb93b refactored redis AR Query::scalar() 2013-11-23 03:20:49 +01:00
Carsten Brandt
bd589620d8 Merge branch 'master' into elasticsearch
* master: (59 commits)
  Refactored hasMany and hasOne so that they support cross-DBMS relationship.
  removed unused asset.php files
  fixed composer.json autoload pathes
  fixed c&p error
  allow installing yii2-dev and get the Yii.php file in the same place
  updated dev composer.json dependencies
  added composer.json for yii2-dev package
  fixed broken UniqueValidator
  removed call to nonexistsend property
  cleanup redis AR
  refactored Model and redis AR to allow drop of RecordSchema
  refactored redis AR to relect the latest changes
  "yii\swiftmailer\Mailer::createSwiftObject()" simplified.
  fixed empty result in findByPk list
  fixed problem with not closed transaction in deleteAll()
  fixed broken test
  apply changes to db\AR -> redis\AR
  added dependency in db\AR -> redis\AR needs to be refactored later
  redis AR cleanup
  ensure atomicity of operations
  ...

Conflicts:
	tests/unit/data/config.php
2013-11-23 03:02:35 +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
e0fcecf222 implemented base index and data manipulation api 2013-11-23 02:27:00 +01:00
Qiang Xue
a95d54ccb7 Merge pull request #905 from yiisoft/redis
[WIP] Redis ActiveRecord
2013-11-22 17:26:19 -08:00
Carsten Brandt
863f523896 removed unused asset.php files 2013-11-23 02:16:19 +01:00
Carsten Brandt
8341a59717 Merge branch 'master' into elasticsearch
* master: (587 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/composer.json
	tests/unit/data/config.php
2013-11-22 20:19:49 +01:00
Carsten Brandt
ed98df5cd8 fixed broken UniqueValidator 2013-11-22 19:20:46 +01:00
Carsten Brandt
6995e8ddd0 removed call to nonexistsend property 2013-11-22 19:02:27 +01:00
Carsten Brandt
4459cb4f2b cleanup redis AR 2013-11-22 19:01:33 +01:00
Carsten Brandt
cb4504a10f refactored Model and redis AR to allow drop of RecordSchema 2013-11-22 18:44:22 +01:00
Carsten Brandt
8542448f20 refactored redis AR to relect the latest changes
- make use of traits
- short array
- better implementation of query findByPk
2013-11-22 17:29:05 +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
Andrea Panattoni
4941db1eee Checkboxlist documentation fix
"Item" parameter keys are the values of the checkbox list,
while the values are the checkbox labels.
2013-11-21 22:37:03 +01:00
Sergey Gonimar
ff92af3f0b Fix doc 2013-11-21 19:43:10 +05:00
Carsten Brandt
c7ef701d8a Renamed DetailView attribute type to format
for consistency with GridViews DataColumn where the same property is
also named format
2013-11-21 15:18:06 +01:00
Carsten Brandt
f3ab5d999b encode email in Formatter
avoid XSS with emails in format  "Carsten Brandt <mail@cebe.cc>"
2013-11-21 14:45:27 +01:00
Qiang Xue
248e0cb916 Added default status code setting. 2013-11-21 08:41:04 -05:00
Serge Bezborodov
1259b0dac6 fix rbac select statement 2013-11-21 12:53:00 +02:00
bethrezen
4fcad2b347 Include Schema in new migrations by default 2013-11-21 12:26:01 +04:00
Qiang Xue
9e1fa1f7a4 Added code example. 2013-11-20 22:56:21 -05:00
Qiang Xue
423ce83798 adjusted log place. 2013-11-20 22:53:43 -05:00
Carsten Brandt
33f4a142ee fixes invalid value in controller redirect
fixes #1261
2013-11-21 01:56:42 +01:00
Qiang Xue
c6ecf4f2de Fixed public property naming. 2013-11-20 16:04:38 -05:00
Qiang Xue
fb945866c7 Fixes #1255: typecast empty string to null for non-string DB columns. 2013-11-20 16:00:10 -05:00
Alexander Makarov
c5e8aabe05 Fixes #1245: LinkPager now renders disabled links as spans preventing these to be clickable 2013-11-21 00:38:48 +04:00
Qiang Xue
900100c29e Merge pull request #1258 from cebe/self-static
Changed usage of self to static to allow extendibility
2013-11-20 12:29:04 -08:00
Carsten Brandt
a82330b212 reverted duplicated fix for #1244
fixes #1244
2013-11-20 21:09:30 +01:00
Carsten Brandt
070bd9625c removed checkPort feature from email validator
fixes #1246
2013-11-20 18:57:29 +01:00
Carsten Brandt
e775c82dd8 Changed usage of self to static to allow extendibility
code style section has been added here:
https://github.com/yiisoft/yii2/wiki/Core-framework-code-style#self-vs-static

verification code for properties:
https://gist.github.com/cebe/7566916
2013-11-20 18:36:05 +01:00
Carsten Brandt
4079acf4a6 changed EmailValidator MX check to be more useful
issue #1246
2013-11-20 16:30:12 +01:00
Carsten Brandt
8dab87be3d fixed EmailValidator IDN and full pattern support
also made everything conistent with client validation
2013-11-20 16:18:19 +01:00
Carsten Brandt
64862f96ca disable CSRF validation after validation has failed
this allows to be able to call error action.

fixes #1244
2013-11-20 14:35:08 +01:00
Carsten Brandt
f5219d2481 Response status code default is 200
fixes #1220
2013-11-20 14:14:04 +01:00
Qiang Xue
9ef3560f5a Fixed test break. 2013-11-19 18:03:52 -05:00
Qiang Xue
f67ddb17f6 Fixes #1242: Gii Model generation added dropped table fields in Postgresql 2013-11-19 17:25:05 -05:00
Qiang Xue
d2e5f2c507 Fixes #1234: use dash instead of underscore to separate language and country in locale id. 2013-11-19 16:33:52 -05:00
Qiang Xue
53457a0a3f Simplified ArrayHelper::multisort(). 2013-11-19 14:10:00 -05:00
Qiang Xue
52bf6ac4c6 Merge pull request #1241 from Alex-Code/script-filter
Update script filter
2013-11-19 08:49:43 -08:00
Qiang Xue
7d9639ea49 Fixed test break. 2013-11-19 11:47:09 -05:00
Alex-Code
719e3bca19 Update yii.js
```map``` and ```indexOf``` on arrays were only added in IE9.
Changed to make use of jQuery's equivalents.
2013-11-19 16:41:32 +00:00
Qiang Xue
3959b8dbda Fixed test break. 2013-11-19 11:33:25 -05:00
Qiang Xue
726a305b7e fixed test break. 2013-11-19 10:57:59 -05:00
Qiang Xue
dd97c002a6 fixed test break. 2013-11-19 10:43:30 -05:00
Qiang Xue
0833fe2e40 Fixed test break. 2013-11-19 10:30:28 -05:00
Qiang Xue
dbf35253b7 Fixes #1237. 2013-11-19 10:25:07 -05:00
Qiang Xue
9efe446545 Fixes #1236: removed Sort::ASC and DESC 2013-11-19 10:20:07 -05:00
Alexander Makarov
e09cc16c49 ApcCache is now compatible with APCu 2013-11-19 17:24:11 +04:00
Carsten Brandt
fbfa18e628 fixed requirement checker for intl PECL
fixes #1230
2013-11-19 12:28:46 +01:00