A new entity was found through the relationship (No it wasn’t !)

If you notice such an error, even though the relationship that Doctrine complains about hasn’t changed and you’re selecting the fresh object from the db. Don’t need to persis here as suggested as it won’t help anyways as the object (in this case a User instance) is already in the DB, so it doesn’t needContinue reading “A new entity was found through the relationship (No it wasn’t !)”

Gitlab – git pull with ssh key

Clone the SSH repo git clone git@gitlab.com:YourUsername/YourRepoName.git (this will copy the repo into a new folder YourRepoName) 2. Alterantively to 1 if you have already copied the HTTPS version of the repo check which version you have with “git remote -v” if you have the repo that starts with git@… it’s already the SSH versionContinue reading “Gitlab – git pull with ssh key”

User experience – Busuu, part 2

Hi there! Recently I have spent less time developing Busuu, than using it. I will walk you through positive experiences and “To improve” here. What I like about the app In general the app gives so much value, that for a serious learners it’s worth a lot more that what it’s being sold at. EssentiallyContinue reading “User experience – Busuu, part 2”

JavaScript – quick tips #1

1. Console logging done right 2. Timer for code 3. Tracing function calls When we want to see where the code was trigerred it shows where the code was defined (VM227:1) and where it was called (VM227:3) and (VM227:4). 4. How to display properties of an object in a more concise way STANDARD WAY: BETTERContinue reading “JavaScript – quick tips #1”

Does a service of correcting essays counts as supplying digital services to consumers in the EU?

Found the set of rules businesses providing services over the Internet. But it seems that correcting essays might not be encompassed by this law. But it depends, if the course mentioned here is prepared beforehand and not a bespoke work of the teacher. https://www.gov.uk/guidance/the-vat-rules-if-you-supply-digital-services-to-private-consumers#businesses-established-outside-the-eu

Custom style for one field – turning a textarea into a rich text editor Quill with Symfony Forms and Twig

I have a form rendered with {{ form(form }} so a standard way of rendering using Form component from Symfony. Now, we want to add a Rich Text Editor (Quill in this case) and add a possibility to attach functionality to chosen textareas. The form now, renders nicely thanks to inbuilt layouts that twig alreadyContinue reading “Custom style for one field – turning a textarea into a rich text editor Quill with Symfony Forms and Twig”

Symfony bundles that allow db records version control and audit

Doctrine Audit BundleThis one is maintained and is compatible with Symfony 5https://packagist.org/packages/damienharper/doctrine-audit-bundle Demo bundle here. DataDogAuditBundlehttps://github.com/DATA-DOG/DataDogAuditBundle knplabs/doctrine-behaviors Maintained.https://github.com/KnpLabs/DoctrineBehaviors antishov/doctrine-extensions-bundle (fork of 5) Gedmo loggable (but currently no Symfony 5 support) https://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.htmlDocs and example here.

Design a site like this with WordPress.com
Get started