Quantcast
Channel: Luke Rotherfield » Symfony2
Browsing latest articles
Browse All 10 View Live

ORDER BY OneToMany or ManyToMany relationships in Symfony2

The simple answer to this is: You just need to use the @ORM\OrderBy() statement in your entity when you declare the relationship. This article also covers an application of this code in a real Symfony2...

View Article



Multiple file upload plugins

Uploadify or Valums Fine Uploader I recently required a multiple file upload plugin for a Symfony2 web project. I had previously used a few upload plugins and so decided to … Continue Reading →The post...

View Article

Symfony2 issue: RequestDataCollector::serialize() must return a string or NULL

Have you ever seen this error in a Symfony2 project: Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::serialize() must return a string or NULL It was a right pain for me as searching...

View Article

Symfony2 tutorial: Creating and using a service

This 2 part Symfony2 tutorial series will cover 3 main topics; Dependency Injection, Services and Twig Extensions. We are going to develop a simple flash notification bundle that builds on … Continue...

View Article

Symfony2 tutorial: Twig extensions and dependency injection

This tutorial is the concluding part of a mini series on Symfony2, specifically: Dependency injection, services and twig extensions. In the previous tutorial we created a service that allows developers...

View Article


Symfony2 Forms: Entity as hidden field

When I started my first big project in Symfony2 I very quickly ran into an issue trying to get entities as hidden fields like I used to in Symfony1.4. A … Continue Reading →The post Symfony2 Forms:...

View Article

Symfony2 Forms: hidden entity type part 2

A few months ago I wrote a tutorial on using a data transformer to add entities as valid hidden fields in a Symfony2 form.  A few of the comments left … Continue Reading →The post Symfony2 Forms:...

View Article

Symfony2:  Get the templating service in a twig extension

A while ago I wrote a tutorial on how to write a twig extension.  One of the issues I had, which was also noted in the comments, was I had … Continue Reading → The post Symfony2:  Get the templating...

View Article


Unpacking Symfony2: What are compiler passes

Introduction This is a three part article about compiler passes in Symfony2. In this article I will walk through what the compiler pass is, what we can do with it and, … Continue Reading → The post...

View Article


Symfony2 Tutorial: Writing a compiler pass

This is the second article in a three part series on Symfony2 Compiler Passes.  This article is a tutorial on writing a compiler pass. The first article, explaining what a … Continue Reading → The post...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images