From 320c162771f1d0f58af9d11f26908c37cab04e93 Mon Sep 17 00:00:00 2001 From: Toni Uebernickel Date: Mon, 28 Nov 2011 10:06:22 +0100 Subject: [PATCH] add documentation about schema inheritance --- Resources/doc/README.markdown | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Resources/doc/README.markdown b/Resources/doc/README.markdown index 4c01f2a..d7060aa 100644 --- a/Resources/doc/README.markdown +++ b/Resources/doc/README.markdown @@ -16,6 +16,7 @@ Currently supports: * Integration with the Form component. * Integration with the Security component. * Propel ParamConverter can be used with Sensio Framework Extra Bundle. + * Schema Inheritance ## Installation ## @@ -385,3 +386,15 @@ BundleNamespace\Model\User: As many validator of this type as you want can be used. +## Bundle Inheritance ## + +The `PropelBundle` makes use of the bundle inheritance. +Currently only schema inheritance is provided. + +### Schema Inheritance ### + +You can override the defined schema of a bundle from within its child bundle. +The child's schema will *completely* override the parent's one. +To make use of the inheritance you only need to drop a schema file in the `Resources/config` folder of the child bundle. + +**IMPORTANT**: If there is *at least one* schema file in the child bundle, *none* of the parent's schema files will be used.