Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate database xml or yaml mapping file #248

Closed
remoteclient opened this issue Oct 21, 2022 · 1 comment
Closed

generate database xml or yaml mapping file #248

remoteclient opened this issue Oct 21, 2022 · 1 comment
Labels
Feature New Feature

Comments

@remoteclient
Copy link

remoteclient commented Oct 21, 2022

If an app uses xml or yaml files for database mapping definitions, it would be nice to get the mapping information in a specific file generated.

Right now I use this xml in ResetPasswordRequest.orm.xml

<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                                      http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="App\Entity\ResetPasswordRequest"
            table="app_reset_password"
            repository-class="App\Repository\ResetPasswordRequestRepository"
    >
        <id name="id" type="integer" column="id">
            <generator strategy="AUTO"/>
        </id>
        <many-to-one field="user" target-entity="App\Entity\AppUser"/>
        <field name="selector" type="string" column="selector" length="20" nullable="false"/>
        <field name="hashedToken" type="string" column="hashed_token" length="100" nullable="false"/>
        <field name="requestedAt" type="datetime_immutable" column="requested_at" nullable="false"/>
        <field name="expiresAt" type="datetime_immutable" column="expires_at" nullable="false"/>
    </entity>
</doctrine-mapping>
@jrushlow jrushlow added the Feature New Feature label Nov 21, 2022
@jrushlow
Copy link
Collaborator

Howdy! ResetPasswordBundle doesn't actually generate any mapping definitions for anything. MakerBundle however does have a make:reset-password command that will generate the files needed to implement reset password into an app. However, MakerBundle only supports yaml mapping and I do not believe we have any plan's to adding additional mapping support in either bundle.

@jrushlow jrushlow closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature
Projects
None yet
Development

No branches or pull requests

2 participants