about creating, you could link the initializer mechanism :ref:`initializer <phpcr-odm-repository-initializers>`