Ignore fields from a Doctrine2 Entity when running schema-manager update
up vote
0
down vote
favorite
I've got a Doctrine Entity defined that maps to a table in my database. The table has some extra columns in it because 2 systems read from the same database.
Now when i run the schema:update command doctrine will remove the columns that are not listed in the entity.
Is there a way to keep these columns in de database table and don't add them as properties in the entity? Or is the only solution adding the properties to the entity?
Thank you all!
doctrine2 symfony4
add a comment |
up vote
0
down vote
favorite
I've got a Doctrine Entity defined that maps to a table in my database. The table has some extra columns in it because 2 systems read from the same database.
Now when i run the schema:update command doctrine will remove the columns that are not listed in the entity.
Is there a way to keep these columns in de database table and don't add them as properties in the entity? Or is the only solution adding the properties to the entity?
Thank you all!
doctrine2 symfony4
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've got a Doctrine Entity defined that maps to a table in my database. The table has some extra columns in it because 2 systems read from the same database.
Now when i run the schema:update command doctrine will remove the columns that are not listed in the entity.
Is there a way to keep these columns in de database table and don't add them as properties in the entity? Or is the only solution adding the properties to the entity?
Thank you all!
doctrine2 symfony4
I've got a Doctrine Entity defined that maps to a table in my database. The table has some extra columns in it because 2 systems read from the same database.
Now when i run the schema:update command doctrine will remove the columns that are not listed in the entity.
Is there a way to keep these columns in de database table and don't add them as properties in the entity? Or is the only solution adding the properties to the entity?
Thank you all!
doctrine2 symfony4
doctrine2 symfony4
asked Nov 9 at 13:04
Blaater
100114
100114
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226256%2fignore-fields-from-a-doctrine2-entity-when-running-schema-manager-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown