Code Monkey home page Code Monkey logo

dbal-table-manager's People

Contributors

pubmaster avatar yago-o avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dbal-table-manager's Issues

Search by deleted row is inverted

When BaseManager uses DeletedRowCondition, it inverts SQL where condition inside this piece of code:

if ($showNotDeleted && $showDeleted) {
	// show all
} else if ($showNotDeleted) {
	$query->andWhere($this->getEntity()->getDeletedAtField() . ' IS NULL');
} else if ($showDeleted) {
	$query->andWhere($this->getEntity()->getDeletedAtField() . ' IS NOT NULL');
}

Postgres integration

Некорректно работает с Postgres. Нужно подружить.

Use current time instead of asOfTime in join subquery

SELECT static.*,
version.surname,
version.name,
version.patronymic,
version.agency_id,
version.department_1c_id,
version.department_en_id,
version.position_1c_id,
version.position_en_id,
version.position_ru_id,
version.head,
version.head_employee_id,
version.fired
FROM Company_employee static
INNER JOIN Company_employee_version version ON static.id = version.employee_id AND version.effective_since = (
SELECT MAX(v1.effective_since)
FROM Company_employee_version v1
WHERE static.id = v1.employee_id
AND v1.effective_since <= '2018-05-31 23:59:59'
) AND version.created_at = (
SELECT MAX(v2.created_at)
FROM Company_employee_version v2
WHERE v2.employee_id = version.employee_id
AND v2.effective_since = version.effective_since
AND v2.created_at <= '2018-05-31 23:59:59'
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.