Orm & Dbal 4.0

Today we are releasing v4.0 for both Orm & Dbal. The future is now! Orm 4.0 added Embeddables — a new way of data encapsulation, added new Collection functions with support for aggregation, added new collection sorters for null values, implemented optimized relationship loading, implemented support for not-exposing mutability, and many others enhancements; see closed … Read more

Orm 4: optimized relationship

Orm 4.0 comes with performance changes for relationships. Let’s see what has been enhanced. You could already filter a relationship to minimize the number of fetched entities (by filtering or limiting). Let’s say we want to get the 10 latest books that publisher has published. The code correctly fetches only the needed books and iterates … Read more

Categories Orm

Orm 4: NULLs ordering

Orm 4.0 will arrive later this quarter and will bring handful of small features. One of them is explicit NULLs ordering. The ordering of NULLs is a topic with a “random” default points of view. It depends if you ask a PHP developer, MySQL developer or even PostgreSQL developer. The each platform, language, SQL server … Read more

Categories Orm

Orm 4: Aggregations

During the 2 last years I was training Nextras Orm few times and immediately realized that my take on collection extensions (aka custom collection functions) is not easy to explain, understand and use. Collection functions should brought a way to implement advanced filtering & ordering, such as an aggregation filtering (“select all authors who have … Read more

Categories Orm

Orm 3.1 – Property containers

Today we are releasing Nextras Orm 3.1 – a release without much features, but with plenty small fixes and enhancements. Let’s examine the major enhancement of property containers. Also, see full release notes. Property containers Until now, Orm property containers were quite limited to pretty simple functionality, such as converting encapsulating object as a JSON. … Read more

Categories Orm

JSON in Nextras Orm 3.0

Storing an array/std-like object structure as json structure in one db column is pretty common use-case. However, the correct approach in Nextras Orm may not be obvious. 🔝 Use property container 😉 First, create your JSON container, by implementing abstract methods of predefined helper class ImmutableValuePropertyContainer. Then, simply define your entity property with container: Please … Read more

Categories Orm

Nextras Orm 3.0

It’s here. It took more time than I have expected. Nextras Orm 3.0 comes with few major features, huge internal refactoring and many small fixes. Check the release notes on GitHub and upgrade guide. Collection Custom Functions & OR Collection custom functions are a powerful enhancement of repository layer. Now you may do more advanced … Read more

Categories Orm

The progress of Orm 3.0

Hi there! It’s been a while I have published some info about the upcoming release of Nextras Orm 3.0. So, what’s the current schedule? Nextras Orm 3.0 will be released in 2017! So, few notes to the current release plan: I apologize for such delay. The plans were quite extreme. I was not able to … Read more

Categories Orm

Orm hackathon & plans for 3.0

Nextras Orm is getting more serious with every day. It has already passed 2000 installs per month! That is an exciting number! The last weekend I, Jan Tvrdík and David Matějka have met to elaborate on Orm’s internal design and to hack some new needed features. We have discussed many topics, including mapper & repository … Read more

Categories Orm