abandoned!
# app/AppKernel.php
<?php
public function registerBundles()
{
$bundles = array(
new KRG\AddressBundle\KRGAddressBundle(),
);
}
# app/config/config.yml
krg_address:
google_maps:
api_key: '%google_maps_api_key%'
doctrine:
orm:
resolve_target_entities:
KRG\AddressBundle\Entity\AddressInterface: AppBundle\Entity\Address
KRG\AddressBundle\Entity\CountryInterface: AppBundle\Entity\Country
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table
*/
class Address extends \KRG\AddressBundle\Entity\Address
{
}
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table
*/
class Country extends \KRG\AddressBundle\Entity\Country
{
}
EMC\FileinputBundle dependency
->add('address', AddressType::class, [
'label_format' => null, // Without labels
]);