Skip to content

Commit

Permalink
Merge pull request #24 from Kunstmaan/db_indexes
Browse files Browse the repository at this point in the history
performance improvements: added db indexes
  • Loading branch information
Roderik van der Veer committed Apr 17, 2014
2 parents 5cf7d9a + 5667a79 commit 8fd608d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Entity/Seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@

namespace Kunstmaan\SeoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\EntityManager;

use Kunstmaan\SeoBundle\Form\SeoType;
use Kunstmaan\MediaBundle\Entity\Media;
use Doctrine\ORM\Mapping as ORM;
use Kunstmaan\AdminBundle\Entity\AbstractEntity;
use Kunstmaan\MediaBundle\Entity\Media;
use Kunstmaan\SeoBundle\Form\SeoType;
use Kunstmaan\UtilitiesBundle\Helper\ClassLookup;

use Symfony\Component\Validator\Constraints as Assert;

/**
* Seo metadata for entities
*
* @ORM\Entity(repositoryClass="Kunstmaan\SeoBundle\Repository\SeoRepository")
* @ORM\Table(name="kuma_seo")
* @ORM\Table(name="kuma_seo", indexes={@ORM\Index(name="idx_lookup", columns={"ref_id", "ref_entity_name"})})
* @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT")
*/
class Seo extends AbstractEntity
Expand Down Expand Up @@ -128,8 +126,6 @@ class Seo extends AbstractEntity
*/
protected $ogUrl;



/**
* @param string $url
*
Expand Down

0 comments on commit 8fd608d

Please sign in to comment.