Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Feature request: disable orm aliasing #31

Open
vGhost2000 opened this issue Jan 9, 2020 · 1 comment
Open

Feature request: disable orm aliasing #31

vGhost2000 opened this issue Jan 9, 2020 · 1 comment

Comments

@vGhost2000
Copy link

Feature request: disable orm aliasing

В некоторых "субд" не поддерживается алиасинг для таблиц, например к SphinxSearch/ManticoreSearch можно коннектиться по mysql протоколу, но запросы вида

SELECT `profileSearch`.`id` AS `c0` FROM `profile` AS `profileSearch`

вызывают ошибку. Алиасы там работают только такие:

SELECT `id` AS `c0` FROM `profile`

Чтоб всё работало необходимо добавить настройку на уровне коннекшена в database.php которая отключала бы в орм механизм алиасов.

Feature request: disable orm aliasing

In some "DBMS" aliasing for tables is not supported, for example, SphinxSearch / ManticoreSearch can be connected via the mysql protocol, but queries of the form

SELECT `profileSearch`.`id` AS` c0` FROM `profile` AS` profileSearch`

cause an error. Aliases only work there:

SELECT `id` AS` c0` FROM` profile`

In order for everything to work, you need to add a connection-level setting to database.php that would disable alias mechanism in the orm.

@wolfy-j
Copy link
Member

wolfy-j commented May 1, 2020

I think it should be done on the ORM level. Any help will be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants