Skip to content

Commit

Permalink
Annotation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylius committed Nov 14, 2014
1 parent abbd12b commit b3ddab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Document/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@
namespace ONGR\TestingBundle\Document;

use ONGR\ElasticsearchBundle\Annotation as ES;
use ONGR\ElasticsearchBundle\Document\DocumentInterface;
use ONGR\ElasticsearchBundle\Document\DocumentTrait;

/**
* Category document for testing.
*
* @ES\Document
* @ES\Object
*/
class Category implements DocumentInterface
class Category
{
use DocumentTrait;

public $hiddenField;
}
2 changes: 1 addition & 1 deletion Document/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Product implements DocumentInterface
/**
* @var Category[]|\Iterator
*
* @ES\Property(type="object", objectName="ONGRTestingBundle:Category", name="categories")
* @ES\Property(type="object", objectName="ONGRTestingBundle:Category", multiple=true, name="categories")
*/
public $categories;
}

0 comments on commit b3ddab3

Please sign in to comment.