-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Many slug fields in sluggable behavior #110
Conversation
$config['unique'] = $slug->unique; | ||
$config['separator'] = $slug->separator; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not add blank line here (and blank line should be really blank anyway whereas these one contain trailing whitespaces)
You have the same sort of CS issues in many places. |
Yes I know... I'll fix it as soon as i can. But what to do you think Thanks On Wed, Jul 13, 2011 at 2:48 PM, stof
Lorenzo Caldara |
I don't know the Sluggable implementation well so I will let @l3pp4rd review this. Btw, you should clean the PR: you have an old commit in the same branch that should not be part of it. Use a different branch for each pull request, creating them from the upstream branch to have a clean one. |
Ok. I'm fixing all coding stiles problem. I'm new to git and githb so Regards. On Wed, Jul 13, 2011 at 2:58 PM, stof
Lorenzo Caldara |
Hi, I will review this when I can, thanks |
@dinoweb Here is the way to create a branch git fetch upstream
git checkout -b multiple_slugs upstream/master
git cherry-pick 8a23176d
git push origin multiple_slugs
This will get your commit and apply it in a new The big drawback of using your master branch to send pull requests is that you create it on top of the previous one, which is an issue when the previous one was rejected (or when you need to create several independent pull requests). A pull request should always be created based on the current state of the code. |
A quick question: the code in "git cherry-pick" command is the last commit id in upstream/master? Thanks On Wed, Jul 13, 2011 at 3:13 PM, stof
Lorenzo Caldara |
@dinoweb It is the sha1 of the commit you want to move to the new branch (I copied the one with the message |
I'm doing some disaster in my git repository. I'll send a new pull request as soon as I'll fix it. |
Added Mysql WEEKDAY function
Hi, I needed a way to have more the one slug field in my entities or documents.
I've implemented a solution to this problem. Here is the code.
I've just added a property "Doctrine\Common\Annotations\Annotation\Sluggable::$slugField" set by default to "slug".
This tell to the SluggableListener which slug field to use.
I've created a new test for this: TranslatableManySlugTest
I tried not to break the compatibility with old notations, all the tests are running ok. May be there is a better way to achieve this goal.
Just have a look to my solution if you have time.
Thank you