Are you interested in innovative solutions? Do you want to use VoIP technology and do not worry about phone bills? It’s time to think about how to choose a VoIP provider and what to pay attention to when deciding on a particular provider. VoIP service provider VoIP technology allows you to communicate with other users […]
PHPStan – must-have tool for PHP Developer
PHPStan is a tool that allows for automatic static analysis of the source code. The tool is very easy to install and configure: just select the application directory that you want to analyze, indicate the level of analysis of the code to be executed and after a while we get a detailed report on potential […]
What is VoIP?
This time, I decided to briefly and clearly explain (I hope) a comprehensive and interesting topic which is VoIP . Quite often, I get questions about the profile of the company in which I work everyday: you work in a company that offers VoIP services, but what does it really mean? What are you doing […]
Translating Doctrine Entities with Symfony forms
As described here I’m using KnpLabs\DoctrineBehaviors for Doctrine2 entity translations. While using this bundle we have nice interface for translations but usually we also need some UI (forms) for managing such translations from user interface. We can always write our own dedicated solution but there is already a nice bundle that will do the job […]
Working with Symfony and Doctrine entities translations
As you know there is no built-in feature in Doctrine2 for translating entities. If you need entities translation you can choose one of several already existing bundles or create the new one. As there is no “the right” way of working with Doctrine2 translations I just want to share my experience. DoctrineExtensions: translatable I don’t […]
Doctrine2 entity changeset for relations
Doctrine2 offers very powerful API for getting entity properties that have changed. This can be achieved using Doctrine\ORM\UnitOfWork. We can call: Doctrine\ORM\UnitOfWork::computeChangeSets() to compute all the changes that have been done to entities and collections and store these changes; Doctrine\ORM\UnitOfWork::getEntityChangeSet($entity) to retrieve all changes to our entity object; Doctrine\ORM\UnitOfWork::getOriginalEntityData($entity) to retrieve the original data of […]
Ignore entity or table when running Doctrine2 schema update command
Recently I came accross a problem with entity that was mapped to view in database. In such scenario calling doctrine:schema:update command was producing errors. I know that we can create custom schema based command tool but I think that my solution is easier and more efficient. The solution is using Doctrine2: postGenerateSchema event listener – […]
TDD with BDD in PHP and Symfony – my presentation at the LDNiB conference
Below I’ve attached slides from my presentation about Test-Driven Development and Behaviour-Driven Development in PHP from “Lubelskie Dni Nauki i Biznesu” conference. The main reason for my presence at this particular conference was the opportunity to talk with students and not only, on the potential job / internship in Level 7 Systems – as we […]