10 Commits

Author SHA1 Message Date
9b8b965fcb Fixes #14211: Fixed regression in Unique and Exist validators 2017-05-26 00:31:30 +03:00
625d554e3a Additional edge case for #14150 2017-05-12 18:06:27 +03:00
8a087c8537 #14150: Added {{ and }} to getTablesUsedInFrom() output 2017-05-12 15:55:37 +03:00
b151b1cdb2 Fixes #14150 2017-05-12 14:17:23 +03:00
23cc4bf4fe Further changes for unique and exist validators
- Combined methods for getting names and aliases of from tables
- Normalized names and aliases
- Added MSSQL syntax
- Added support for spaces in aliases and table names
2017-05-10 00:35:40 +03:00
37fc6c5afb Alternative names 2017-04-26 15:36:36 +03:00
7db93fc33d Refactored solution to be contained within ActiveQuery instead of helper 2017-04-25 23:24:27 +03:00
13c2f5370f Fixed formatting in tests [skip ci] 2017-03-18 00:13:08 +03:00
92eee10ae1 Change the name of method getQueryTableName and remove its $query argument (#12893)
* refactores getQueryTableName:
* replaces the $query argument with a $this implementation

* exposes getQueryTableName to be public instead of private. Fixes #12878

* added unit tests for exposed method

* updated changelog

* - methodname changed to 'getTableNameAndAlias'
- scope back to private
- added @internal tag to emphasize that the method is used purely for the internal workings of this piece of software.
- removed changelog (as the API has not changed)

* update tests
2016-12-08 21:22:18 +01:00
560e3eb0a3 Unit tests created for ActiveQuery (#12889)
* setup ActiveQueryTest

* basic unit tests for ActiveQuery are created:
- all protected & public methods are covered
- method return types are tested
- some functions are already full tested, others are supplied with @todo

* fix driver for mssql

* fix ::class to className()

* remove OCI tests
2016-11-01 20:48:58 +01:00