Work with Vcards in a ZF2 app.
{
"require": {
"yalesov/zf2-vcard": "dev-master"
}
}
Then add Yalesov\Vcard
to the modules
key in (app root)/config/application.config.*
Vcard module will also hook onto your application's database, through DoctrineORMModule
. It will create a number of tables with the prefix he_vcard_*
, and will use the default EntityManager doctrine.entitymanager.orm_default
. If your settings are different, please modify the doctrine
section of config/module.config.yml
as needed.
Finally, you need to update your database schema. The recommended way is through Doctrine's CLI:
$ vendor/bin/doctrine-module orm:schema-tool:update --force
todo
todo
You can use the Doctrine 2 ORM API directly. Mapping files are located at (zf2-vcard)/src/Yalesov/Vcard/Entity/Mapping
.