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

Tag Module converted to Doctrine #1156

Merged
merged 40 commits into from
May 5, 2015

Conversation

jeroendesloovere
Copy link
Member

Replaced database for Doctrine in Backend and Frontend Tags Module.

*
* @ORM\Column(type="string", length=255)
*/
private $tag;
Copy link
Member

Choose a reason for hiding this comment

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

I would use 'name' and not 'tag', since you will store the 'name' property of the 'tag' object in here. This will make it less confusing I guess.

@@ -1,8 +1,15 @@
CREATE TABLE IF NOT EXISTS `tags` (
Copy link
Member

Choose a reason for hiding this comment

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

this file should be completely removed in favor of installing doctrine entities (see https://github.com/forkcms/forkcms/blob/doctrine/src/Backend/Modules/ContentBlocks/Installer/Installer.php#L34-L36)

@turanct
Copy link
Contributor

turanct commented Apr 2, 2015

Isn't this a great opportunity to rename all the $this->record, $this->item, $record, $item in this module to $tag? Since it's a Doctrine entity now, the name "record" or "item" is even less relevant than before...

@jeroendesloovere
Copy link
Member Author

@turanct That's a good idea. What do you think @WouterSioen

@jeroendesloovere
Copy link
Member Author

Poke @WouterSioen

@WouterSioen
Copy link
Member

I'm in Iceland at the moment, I'll be back the 20th of april.

Op maandag 13 april 2015 heeft Jeroen Desloovere notifications@github.com
het volgende geschreven:

Poke @WouterSioen https://github.com/WouterSioen


Reply to this email directly or view it on GitHub
#1156 (comment).

@WouterSioen
Copy link
Member

I'm 100% in favour of good variable names that says what the variable contains. renaming stuff like item, value, record,... to something more meaningful would thus be a great thing to do!

@jeroendesloovere
Copy link
Member Author

@turanct @WouterSioen Done.

@jeroendesloovere
Copy link
Member Author

@WouterSioen What seems to be the Scrutinizer Error?

@WouterSioen
Copy link
Member

The doctrine branch does not contain tests yet, so no code coverage could be generated. Don't worry about it ;)

WouterSioen added a commit that referenced this pull request May 5, 2015
@WouterSioen WouterSioen merged commit 07ffb0c into forkcms:doctrine May 5, 2015
@jeroendesloovere
Copy link
Member Author

@WouterSioen Is this branch ready to be merged with the Doctrine branch? Or do I need to change something?

@WouterSioen
Copy link
Member

it's merged :)

@jeroendesloovere
Copy link
Member Author

@WouterSioen thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants