Skip to content

Commit

Permalink
Refactored the part entity to its own bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo A. Hummel committed Jul 27, 2015
1 parent 0a186cf commit d93b0f6
Show file tree
Hide file tree
Showing 22 changed files with 654 additions and 713 deletions.
13 changes: 13 additions & 0 deletions app/config/config.yml
Expand Up @@ -318,6 +318,19 @@ services:
arguments:
- { groups: [ "default" ] }

resource.part:
parent: "api.resource"
arguments: [ "PartKeepr\\PartBundle\\Entity\\Part" ]
tags: [ { name: "api.resource" } ]
calls:
- method: "initFilters"
arguments: [ [ "@doctrine_reflection_service.search_filter" ] ]
- method: "initNormalizationContext"
arguments: [ { groups: [ "default" ] } ]
- method: "initDenormalizationContext"
arguments:
- { groups: [ "default" ] }

resource.manufacturer:
parent: "api.resource"
arguments: [ "PartKeepr\\ManufacturerBundle\Entity\Manufacturer" ]
Expand Down
2 changes: 1 addition & 1 deletion cronjobs/UpdatePartCacheData.php
Expand Up @@ -9,7 +9,7 @@

PartKeepr::initialize();

$query = PartKeepr::getEM()->createQuery("SELECT p FROM PartKeepr\Part\Part p");
$query = PartKeepr::getEM()->createQuery("SELECT p FROM PartKeepr\PartBundle\Entity\Part p");
$result = $query->getResult();

$fc = 0;
Expand Down
Expand Up @@ -102,7 +102,7 @@ Ext.define("PartKeepr.GridMenuPlugin", {
}

var val = Ext.create("PartKeepr.PrintingWindow");
val.setObjectType('PartKeepr\\Part\\Part');
val.setObjectType('PartKeepr\\PartBundle\\Entity\\Part');
val.setObjectIds(ids);
val.show();
},
Expand Down
Expand Up @@ -162,7 +162,7 @@ Ext.define('PartKeepr.PartEditorWindow', {
*/
printItem: function( id ){
var val = Ext.create("PartKeepr.PrintingWindow");
val.setObjectType('PartKeepr\\Part\\Part');
val.setObjectType('PartKeepr\\PartBundle\\Entity\\Part');
val.setContext("PartEditor");
val.setObjectIds([id]);
val.show();
Expand Down

0 comments on commit d93b0f6

Please sign in to comment.