Welcome back for part 3 of our Starting in Symfony2 series! In part 3 of this series, we're going to discover even more about Symfony and begin to learn more about how Symfony really works under the hood. Over the next hour or so, we're going to learn what a service is, find out more about the core Symfony services, and create a few of our own. In Doctrine, we'll create some Doctrine associations, including ManyToOne and ManyToMany relationships. We'll also talk about lifecycle callbacks and event listeners. Plus a ton more!
Highlights:
- Doctrine relations, metadata, and the JoinColumn
- ManyToMany relationship that's bidirectional, owning versus inverse side and why that matters
- Loading fixtures with shared data
- Creating shortcuts with your very own base controller!
- Doctrine extensions: timestampable, sluggable
- Ajax: returning Json from a controller, setting the content type and the _format parameter
- Customizing error pages at the template and controller level
- Overriding bundle templates
- Embedding other controllers with Twig's render tag
- Services! What they are, where to find and use the core services, and a step-by-step on how to create your own. Also, demystifying dependency injection.
- Creating your very own Twig extension
- Doctrine lifecycle callbacks and how to create and leverage your own doctrine event listener service