Comments (4)
Yii2 does not have methods for getting the current alias of query. In yii\db\ActiveQuery
exist method getTableNameAndAlias()
, but it's private. In main yii2 repo, there are several issue and pull-requests:
https://github.com/yiisoft/yii2/issues/7263
yiisoft/yii2#11646
Without method getTableAlias()
, it is difficult to implement the getting of the current table alias and I need to duplicate this private method.
Therefore, aliases are not currently supported.
from yii2-adjacency-list.
I propose to delete the name of the table and leave only the name of the field.
from yii2-adjacency-list.
It is possible, but if you use joins, then the absence of aliases will also generate errors.
I will try to deal with this issue without waiting for a solution in the framework.
from yii2-adjacency-list.
Thanks
from yii2-adjacency-list.
Related Issues (12)
- Версия нестабильная HOT 1
- Get all siblings HOT 12
- getDescendantsOrdered $depth param? HOT 2
- Получение предков через with HOT 3
- Сортировка нескольких root'ов
- Improve migration example code README.md
- Выборка с сортировкой HOT 4
- Где взять примеры функций для работы с деревом? HOT 3
- How to get whole tree into one-level array? HOT 4
- parent_id = null HOT 2
- Добавить проверку на рекурсию HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-adjacency-list.