Skip to content

update cookbook for couch and phpcr and give some more hints and background #2669

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

Merged
merged 1 commit into from
Jun 30, 2013
Merged

update cookbook for couch and phpcr and give some more hints and background #2669

merged 1 commit into from
Jun 30, 2013

Conversation

dbu
Copy link
Contributor

@dbu dbu commented May 27, 2013

Q A
Doc fix? yes
New docs? partially
Applies to 2.3
Fixed tickets

adding the missing doc for couchdb and phpcr, and giving some more information.

$container->addCompilerPass(
DoctrinCouchDBMappingsPass::createXmlMappingDriver(
$mappings, 'fos_user.backend_type_couchdb'
));
Copy link
Member

Choose a reason for hiding this comment

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

$container->addCompilerPass(
    DoctrineCouchDBMappingsPass::createXmlMappingDriver(
        $mappings,
        'fos_user.backend_type_couchdb'
    )
);

@dbu
Copy link
Contributor Author

dbu commented May 27, 2013

thanks for the feedback, fixed all 4 issues.

. '\Compiler\DoctrineCouchDBMappingsPass';
if (class_exists($couchCompilerClass)) {
$container->addCompilerPass(
DoctrinCouchDBMappingsPass::createXmlMappingDriver(
Copy link
Member

Choose a reason for hiding this comment

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

Typo DoctrineCouchDBMappingsPass

@dbu
Copy link
Contributor Author

dbu commented May 27, 2013

ups, fixed and made Doctrine consistently uppercase

@wouterj
Copy link
Member

wouterj commented May 27, 2013

👍 (could you please squash?)

Nice to see another gab filled with some content!

@dbu
Copy link
Contributor Author

dbu commented May 27, 2013

squashed the commits

@dbu
Copy link
Contributor Author

dbu commented Jun 10, 2013

any reason not to merge this?

@wouterj
Copy link
Member

wouterj commented Jun 10, 2013

No. I just think Ryan didn't get to this PR. He often wants to test these big PRs before merging and that means some more time than the minor typo fix PRs.

@dbu
Copy link
Contributor Author

dbu commented Jun 10, 2013

ah ok then. would have been bad if we each wait on the other to act :-)

and i start referring people to that cookbook entry and then noticed its not complete yet...

And place your mapping file into `/Resources/config/doctrine-base` with the
fully qualified class name, separated by `.` instead of `\\`, for example
`Other.Namespace.Model.Name.orm.xml`. You may not mix the two as otherwise
the SymfonyFileLocator will get confused.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh ups. on the plus side of this being not yet merged: i just detected i did not update after discovering an issue i had.

@beberlei do you have any input on this, does it make sense to recommend this solution?

@dbu
Copy link
Contributor Author

dbu commented Jun 10, 2013

right, thanks for the inputs WouterJ. fixed and squashed again.

And place your mapping file into ``/Resources/config/doctrine-base`` with the
fully qualified class name, separated by ``.`` instead of ``\``, for example
``Other.Namespace.Model.Name.orm.xml``. You may not mix the two as otherwise
the SymfonyFileLocator will get confused.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@beberlei do you have any input on this, does it make sense to recommend this solution?

weaverryan added a commit that referenced this pull request Jun 30, 2013
update cookbook for couch and phpcr and give some more hints and background
@weaverryan weaverryan merged commit e0b83a3 into symfony:2.3 Jun 30, 2013
weaverryan added a commit that referenced this pull request Jun 30, 2013
1) Fixed missed second argument to the `createXmlMappingDriver` methods

2) Clarified the final note about the SymfonyFileLocator

3) Other minor changes
@weaverryan
Copy link
Member

Hey David!

I've just merged this in - apologies for the delay, I wanted to have some time to actually look and understand this feature. I've made some changes at sha: e55f0f7, which include adding a missing second argument to the createXmlMappingDriver method. Please let me know if I've missed something or made a mistake.

Thanks!

weaverryan added a commit that referenced this pull request Jul 1, 2013
@dbu
Copy link
Contributor Author

dbu commented Jul 1, 2013

No worries, thanks for the cleanups, seems i did not sync with the changes in the pr. Now lets help people actually can use this

@dbu dbu deleted the couchdb-phpcr-reusable-models branch July 29, 2014 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants