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

Removed o_ prefixes #379

Closed
wants to merge 12 commits into from

Conversation

aashan10
Copy link
Contributor

@aashan10 aashan10 commented Nov 30, 2022

Resolves #342

@@ -5,7 +5,7 @@
<th class="table-id-column">#</th>
<th width="80px">
<div class="pos">
<a class="sorting{{ cmf_currentOrder('o_id') }}" href="{{ path('customermanagementframework_admin_customers_list', cmf_nextFormOrderParams('o_id')) }}">
<a class="sorting{{ cmf_currentOrder('id') }}" href="{{ path('customermanagementframework_admin_customers_list', cmf_nextFormOrderParams('id')) }}">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should pass this variable (with value from getVersionDependentDatabaseColumnName) from list action and read it here..

SELECT `breaksInheritance` FROM `plugin_cmf_segment_assignment` WHERE `elementId` = elementIdent AND `elementType` = 'object' INTO breaks;

WHILE (elementExists = 0 OR breaks IS NULL OR breaks <> 1) AND elementIdent > 1 DO
SELECT `parentId` FROM `objects` WHERE `id` = elementIdent INTO elementIdent;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvesh3 what about here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to check column here and run command specifically. please see suggestions here https://stackoverflow.com/questions/133031/how-to-check-if-a-column-exists-in-a-sql-server-table

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure though if this is the best solution

Copy link
Contributor

@dvesh3 dvesh3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aashan10 please tests are still failing, most probably due to stored procedure change. thanks!

@fashxp
Copy link
Member

fashxp commented Dec 13, 2022

  • migration for updating stored procedure necessary

@aashan10 aashan10 closed this Dec 15, 2022
@aashan10 aashan10 reopened this Dec 15, 2022
dvesh3 added a commit that referenced this pull request Dec 15, 2022
@dvesh3 dvesh3 changed the base branch from 4.x to base_aashan10_issue-342 December 15, 2022 11:16
dvesh3 pushed a commit that referenced this pull request Dec 15, 2022
@dvesh3 dvesh3 closed this Dec 15, 2022
@dvesh3 dvesh3 reopened this Dec 15, 2022
@dvesh3
Copy link
Contributor

dvesh3 commented Dec 15, 2022

Closed in favor of #382

@dvesh3 dvesh3 closed this Dec 15, 2022
dvesh3 added a commit that referenced this pull request Dec 15, 2022
* Changes for #379

* Changes for #379

* Removde o_ prefix

Signed-off-by: dvesh3 <divesh.pahuja@pimcore.com>

* Removde o_ prefix

Signed-off-by: dvesh3 <divesh.pahuja@pimcore.com>

* Removde o_ prefix

Signed-off-by: dvesh3 <divesh.pahuja@pimcore.com>

Signed-off-by: dvesh3 <divesh.pahuja@pimcore.com>
Co-authored-by: Ashan Ghimire <ashanghimire10@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Remove o_ prefix for data object properties and database columns
3 participants