8000 Added a brief explanation about Doctrine DBAL Session Storage by javiereguiluz · Pull Request #5019 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added a brief explanation about Doctrine DBAL Session Storage #5019

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

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member
Q A
Doc fix? no
New docs? yes
Applies to 2.3+
Fixed tickets #881

This PR fixes one of the oldest pending issues, dating back to Nov. 2011 :)


The only significant disadvantage of the Doctrine DBAL session storage comparing
it with ``PdoSessionHandler`` is that you can only configure the name of the
table used to store sessions, but not its column names.
Copy link
Contributor

Choose a reason for hiding this comment

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

i am not sure of the comma here

@wouterj
Copy link
Member
wouterj commented Feb 19, 2015

There was already a PR on this: #3914

We should pick the best things of both PRs and have one PR.

/cc @xocasdashdash

@javiereguiluz
Copy link
Member Author

@wouterj I'm sorry about that. Can we develop a bot that automatically applies the has PR label to the issues with a pending PR?

above, but uses a Doctrine connection and thus also works with non-PDO-based
drivers like mysqli and OCI8.

The only significant disadvantage of the Doctrine DBAL session storage comparing
Copy link
Member

Choose a reason for hiding this comment

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

note that these paragraphs are true for 2.3, but not for 2.6+ (the DBAL session storage has not been migrated to implement session locking yet AFAIK)

@javiereguiluz
Copy link
Member Author

Closing it because there is another previous PR to fix this issue.

@javiereguiluz
Copy link
Member Author

Reopening it because the other previous PR was closed precisely in favor of this PR.

@javiereguiluz javiereguiluz reopened this Jun 26, 2015
@javiereguiluz
Copy link
Member Author

What's left for this PR to be considered finished?

));

// ...
$container->setParameter('pdo.dbal_session_table', 'sess');
Copy link
Member

Choose a reason for hiding this comment

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

The other examples don't have the pdo. prefix.

@weaverryan
Copy link
Member

I actually dislike that we're giving people two equivalent options (or maybe this is not as good as the PDO option, since it doesn't have the new locking stuff). I'd like to not document this - since it doesn't add anything, it takes away.

Also, the biggest potential advantage - reusing the dbal connection - is not a good idea, according to the original PR: symfony/symfony#2182 (comment)

Anyone else agree?

@stof
Copy link
Member
stof commented Oct 15, 2015

the DBAL implementation made sense in 2.3 because it allowed to lazy-load the connection. but the new 2.6+ PDO implementation also supports lazy-loading the PDO connection, so it is indeed less necessary.

@weaverryan
Copy link
Member

Thanks Stof - I'm going to leave this as a "will not document"

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.

6 participants
0