Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit e32bd4e

Browse files
author
h0m3us3r
committed
fix default footprint setup
1 parent a8ad852 commit e32bd4e

File tree

4 files changed

+63
-111
lines changed

4 files changed

+63
-111
lines changed

docker/development/initdb/dump.sql

Lines changed: 45 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -169,41 +169,41 @@ CREATE TABLE `Footprint` (
169169
LOCK TABLES `Footprint` WRITE;
170170
/*!40000 ALTER TABLE `Footprint` DISABLE KEYS */;
171171
INSERT INTO `Footprint` VALUES (1,3,'CBGA-32','32-Lead Ceramic Ball Grid Array');
172-
INSERT INTO `Footprint` VALUES (2,5,'FCBGA-576','576-Ball Ball Grid Array, Thermally Enhanced');
173-
INSERT INTO `Footprint` VALUES (3,7,'PBGA-119','119-Ball Plastic Ball Grid Array');
174-
INSERT INTO `Footprint` VALUES (4,9,'PBGA-169','169-Ball Plastic Ball Grid Array');
175-
INSERT INTO `Footprint` VALUES (5,11,'PBGA-225','225-Ball Plastic a Ball Grid Array');
176-
INSERT INTO `Footprint` VALUES (6,13,'PBGA-260','260-Ball Plastic Ball Grid Array');
177-
INSERT INTO `Footprint` VALUES (7,15,'PBGA-297','297-Ball Plastic Ball Grid Array');
178-
INSERT INTO `Footprint` VALUES (8,17,'PBGA-304','304-Lead Plastic Ball Grid Array');
179-
INSERT INTO `Footprint` VALUES (9,19,'PBGA-316','316-Lead Plastic Ball Grid Array');
180-
INSERT INTO `Footprint` VALUES (10,21,'PBGA-324','324-Ball Plastic Ball Grid Array');
181-
INSERT INTO `Footprint` VALUES (11,23,'PBGA-385','385-Lead Ball Grid Array');
182-
INSERT INTO `Footprint` VALUES (12,25,'PBGA-400','400-Ball Plastic Ball Grid Array');
183-
INSERT INTO `Footprint` VALUES (13,27,'PBGA-484','484-Ball Plastic Ball Grid Array');
184-
INSERT INTO `Footprint` VALUES (14,29,'PBGA-625','625-Ball Plastic Ball Grid Array');
185-
INSERT INTO `Footprint` VALUES (15,31,'PBGA-676','676-Ball Plastic Ball Grid Array');
186-
INSERT INTO `Footprint` VALUES (16,33,'SBGA-256','256-Ball Ball Grid Array, Thermally Enhanced');
187-
INSERT INTO `Footprint` VALUES (17,35,'SBGA-304','304-Ball Ball Grid Array, Thermally Enhanced');
188-
INSERT INTO `Footprint` VALUES (18,37,'SBGA-432','432-Ball Ball Grid Array, Thermally Enhanced');
189-
INSERT INTO `Footprint` VALUES (19,39,'CerDIP-8','8-Lead Ceramic Dual In-Line Package');
190-
INSERT INTO `Footprint` VALUES (20,41,'CerDIP-14','14-Lead Ceramic Dual In-Line Package');
191-
INSERT INTO `Footprint` VALUES (21,43,'CerDIP-16','16-Lead Ceramic Dual In-Line Package');
192-
INSERT INTO `Footprint` VALUES (22,45,'CerDIP-18','18-Lead Ceramic Dual In-Line Package');
193-
INSERT INTO `Footprint` VALUES (23,47,'CerDIP-20','20-Lead Ceramic Dual In-Line Package');
194-
INSERT INTO `Footprint` VALUES (24,49,'CerDIP-24 Narrow','24-Lead Ceramic Dual In-Line Package - Narrow Body');
195-
INSERT INTO `Footprint` VALUES (25,51,'CerDIP-24 Wide','24-Lead Ceramic Dual In-Line Package - Wide Body');
196-
INSERT INTO `Footprint` VALUES (26,53,'CerDIP-28','28-Lead Ceramic Dual In-Line Package');
197-
INSERT INTO `Footprint` VALUES (27,55,'CerDIP-40','40-Lead Ceramic Dual In-Line Package');
198-
INSERT INTO `Footprint` VALUES (28,57,'PDIP-8','8-Lead Plastic Dual In-Line Package');
199-
INSERT INTO `Footprint` VALUES (29,59,'PDIP-14','14-Lead Plastic Dual In-Line Package');
200-
INSERT INTO `Footprint` VALUES (30,61,'PDIP-16','16-Lead Plastic Dual In-Line Package');
201-
INSERT INTO `Footprint` VALUES (31,63,'PDIP-18','18-Lead Plastic Dual In-Line Package');
202-
INSERT INTO `Footprint` VALUES (32,65,'PDIP-20','20-Lead Plastic Dual In-Line Package');
203-
INSERT INTO `Footprint` VALUES (33,67,'PDIP-24','24-Lead Plastic Dual In-Line Package');
204-
INSERT INTO `Footprint` VALUES (34,69,'PDIP-28 Narrow','28-Lead Plastic Dual In-Line Package, Narrow Body');
205-
INSERT INTO `Footprint` VALUES (35,71,'PDIP-28 Wide','28-Lead Plastic Dual In-Line Package, Wide Body');
206-
INSERT INTO `Footprint` VALUES (36,NULL,'SOIC-N-EP-8','8-Lead Standard Small Outline Package, with Expose Pad');
172+
INSERT INTO `Footprint` VALUES (2,4,'FCBGA-576','576-Ball Ball Grid Array, Thermally Enhanced');
173+
INSERT INTO `Footprint` VALUES (3,5,'PBGA-119','119-Ball Plastic Ball Grid Array');
174+
INSERT INTO `Footprint` VALUES (4,5,'PBGA-169','169-Ball Plastic Ball Grid Array');
175+
INSERT INTO `Footprint` VALUES (5,5,'PBGA-225','225-Ball Plastic a Ball Grid Array');
176+
INSERT INTO `Footprint` VALUES (6,5,'PBGA-260','260-Ball Plastic Ball Grid Array');
177+
INSERT INTO `Footprint` VALUES (7,5,'PBGA-297','297-Ball Plastic Ball Grid Array');
178+
INSERT INTO `Footprint` VALUES (8,5,'PBGA-304','304-Lead Plastic Ball Grid Array');
179+
INSERT INTO `Footprint` VALUES (9,5,'PBGA-316','316-Lead Plastic Ball Grid Array');
180+
INSERT INTO `Footprint` VALUES (10,5,'PBGA-324','324-Ball Plastic Ball Grid Array');
181+
INSERT INTO `Footprint` VALUES (11,5,'PBGA-385','385-Lead Ball Grid Array');
182+
INSERT INTO `Footprint` VALUES (12,5,'PBGA-400','400-Ball Plastic Ball Grid Array');
183+
INSERT INTO `Footprint` VALUES (13,5,'PBGA-484','484-Ball Plastic Ball Grid Array');
184+
INSERT INTO `Footprint` VALUES (14,5,'PBGA-625','625-Ball Plastic Ball Grid Array');
185+
INSERT INTO `Footprint` VALUES (15,5,'PBGA-676','676-Ball Plastic Ball Grid Array');
186+
INSERT INTO `Footprint` VALUES (16,6,'SBGA-256','256-Ball Ball Grid Array, Thermally Enhanced');
187+
INSERT INTO `Footprint` VALUES (17,6,'SBGA-304','304-Ball Ball Grid Array, Thermally Enhanced');
188+
INSERT INTO `Footprint` VALUES (18,6,'SBGA-432','432-Ball Ball Grid Array, Thermally Enhanced');
189+
INSERT INTO `Footprint` VALUES (19,8,'CerDIP-8','8-Lead Ceramic Dual In-Line Package');
190+
INSERT INTO `Footprint` VALUES (20,8,'CerDIP-14','14-Lead Ceramic Dual In-Line Package');
191+
INSERT INTO `Footprint` VALUES (21,8,'CerDIP-16','16-Lead Ceramic Dual In-Line Package');
192+
INSERT INTO `Footprint` VALUES (22,8,'CerDIP-18','18-Lead Ceramic Dual In-Line Package');
193+
INSERT INTO `Footprint` VALUES (23,8,'CerDIP-20','20-Lead Ceramic Dual In-Line Package');
194+
INSERT INTO `Footprint` VALUES (24,8,'CerDIP-24 Narrow','24-Lead Ceramic Dual In-Line Package - Narrow Body');
195+
INSERT INTO `Footprint` VALUES (25,8,'CerDIP-24 Wide','24-Lead Ceramic Dual In-Line Package - Wide Body');
196+
INSERT INTO `Footprint` VALUES (26,8,'CerDIP-28','28-Lead Ceramic Dual In-Line Package');
197+
INSERT INTO `Footprint` VALUES (27,8,'CerDIP-40','40-Lead Ceramic Dual In-Line Package');
198+
INSERT INTO `Footprint` VALUES (28,9,'PDIP-8','8-Lead Plastic Dual In-Line Package');
199+
INSERT INTO `Footprint` VALUES (29,9,'PDIP-14','14-Lead Plastic Dual In-Line Package');
200+
INSERT INTO `Footprint` VALUES (30,9,'PDIP-16','16-Lead Plastic Dual In-Line Package');
201+
INSERT INTO `Footprint` VALUES (31,9,'PDIP-18','18-Lead Plastic Dual In-Line Package');
202+
INSERT INTO `Footprint` VALUES (32,9,'PDIP-20','20-Lead Plastic Dual In-Line Package');
203+
INSERT INTO `Footprint` VALUES (33,9,'PDIP-24','24-Lead Plastic Dual In-Line Package');
204+
INSERT INTO `Footprint` VALUES (34,9,'PDIP-28 Narrow','28-Lead Plastic Dual In-Line Package, Narrow Body');
205+
INSERT INTO `Footprint` VALUES (35,9,'PDIP-28 Wide','28-Lead Plastic Dual In-Line Package, Wide Body');
206+
INSERT INTO `Footprint` VALUES (36,10,'SOIC-N-EP-8','8-Lead Standard Small Outline Package, with Expose Pad');
207207
/*!40000 ALTER TABLE `Footprint` ENABLE KEYS */;
208208
UNLOCK TABLES;
209209
DROP TABLE IF EXISTS `FootprintAttachment`;
@@ -253,77 +253,16 @@ CREATE TABLE `FootprintCategory` (
253253

254254
LOCK TABLES `FootprintCategory` WRITE;
255255
/*!40000 ALTER TABLE `FootprintCategory` DISABLE KEYS */;
256-
INSERT INTO `FootprintCategory` VALUES (1,NULL,1,142,0,1,'Root Category',NULL,'Root Category');
257-
INSERT INTO `FootprintCategory` VALUES (2,1,2,5,1,1,'BGA',NULL,'Root Category ➤ BGA');
258-
INSERT INTO `FootprintCategory` VALUES (3,2,3,4,2,1,'CBGA',NULL,'Root Category ➤ BGA ➤ CBGA');
259-
INSERT INTO `FootprintCategory` VALUES (4,1,6,9,1,1,'BGA',NULL,'Root Category ➤ BGA');
260-
INSERT INTO `FootprintCategory` VALUES (5,4,7,8,2,1,'FCBGA',NULL,'Root Category ➤ BGA ➤ FCBGA');
261-
INSERT INTO `FootprintCategory` VALUES (6,1,10,13,1,1,'BGA',NULL,'Root Category ➤ BGA');
262-
INSERT INTO `FootprintCategory` VALUES (7,6,11,12,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
263-
INSERT INTO `FootprintCategory` VALUES (8,1,14,17,1,1,'BGA',NULL,'Root Category ➤ BGA');
264-
INSERT INTO `FootprintCategory` VALUES (9,8,15,16,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
265-
INSERT INTO `FootprintCategory` VALUES (10,1,18,21,1,1,'BGA',NULL,'Root Category ➤ BGA');
266-
INSERT INTO `FootprintCategory` VALUES (11,10,19,20,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
267-
INSERT INTO `FootprintCategory` VALUES (12,1,22,25,1,1,'BGA',NULL,'Root Category ➤ BGA');
268-
INSERT INTO `FootprintCategory` VALUES (13,12,23,24,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
269-
INSERT INTO `FootprintCategory` VALUES (14,1,26,29,1,1,'BGA',NULL,'Root Category ➤ BGA');
270-
INSERT INTO `FootprintCategory` VALUES (15,14,27,28,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
271-
INSERT INTO `FootprintCategory` VALUES (16,1,30,33,1,1,'BGA',NULL,'Root Category ➤ BGA');
272-
INSERT INTO `FootprintCategory` VALUES (17,16,31,32,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
273-
INSERT INTO `FootprintCategory` VALUES (18,1,34,37,1,1,'BGA',NULL,'Root Category ➤ BGA');
274-
INSERT INTO `FootprintCategory` VALUES (19,18,35,36,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
275-
INSERT INTO `FootprintCategory` VALUES (20,1,38,41,1,1,'BGA',NULL,'Root Category ➤ BGA');
276-
INSERT INTO `FootprintCategory` VALUES (21,20,39,40,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
277-
INSERT INTO `FootprintCategory` VALUES (22,1,42,45,1,1,'BGA',NULL,'Root Category ➤ BGA');
278-
INSERT INTO `FootprintCategory` VALUES (23,22,43,44,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
279-
INSERT INTO `FootprintCategory` VALUES (24,1,46,49,1,1,'BGA',NULL,'Root Category ➤ BGA');
280-
INSERT INTO `FootprintCategory` VALUES (25,24,47,48,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
281-
INSERT INTO `FootprintCategory` VALUES (26,1,50,53,1,1,'BGA',NULL,'Root Category ➤ BGA');
282-
INSERT INTO `FootprintCategory` VALUES (27,26,51,52,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
283-
INSERT INTO `FootprintCategory` VALUES (28,1,54,57,1,1,'BGA',NULL,'Root Category ➤ BGA');
284-
INSERT INTO `FootprintCategory` VALUES (29,28,55,56,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
285-
INSERT INTO `FootprintCategory` VALUES (30,1,58,61,1,1,'BGA',NULL,'Root Category ➤ BGA');
286-
INSERT INTO `FootprintCategory` VALUES (31,30,59,60,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
287-
INSERT INTO `FootprintCategory` VALUES (32,1,62,65,1,1,'BGA',NULL,'Root Category ➤ BGA');
288-
INSERT INTO `FootprintCategory` VALUES (33,32,63,64,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
289-
INSERT INTO `FootprintCategory` VALUES (34,1,66,69,1,1,'BGA',NULL,'Root Category ➤ BGA');
290-
INSERT INTO `FootprintCategory` VALUES (35,34,67,68,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
291-
INSERT INTO `FootprintCategory` VALUES (36,1,70,73,1,1,'BGA',NULL,'Root Category ➤ BGA');
292-
INSERT INTO `FootprintCategory` VALUES (37,36,71,72,2,1,'PBGA',NULL,'Root Category ➤ BGA ➤ PBGA');
293-
INSERT INTO `FootprintCategory` VALUES (38,1,74,77,1,1,'DIP',NULL,'Root Category ➤ DIP');
294-
INSERT INTO `FootprintCategory` VALUES (39,38,75,76,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
295-
INSERT INTO `FootprintCategory` VALUES (40,1,78,81,1,1,'DIP',NULL,'Root Category ➤ DIP');
296-
INSERT INTO `FootprintCategory` VALUES (41,40,79,80,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
297-
INSERT INTO `FootprintCategory` VALUES (42,1,82,85,1,1,'DIP',NULL,'Root Category ➤ DIP');
298-
INSERT INTO `FootprintCategory` VALUES (43,42,83,84,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
299-
INSERT INTO `FootprintCategory` VALUES (44,1,86,89,1,1,'DIP',NULL,'Root Category ➤ DIP');
300-
INSERT INTO `FootprintCategory` VALUES (45,44,87,88,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
301-
INSERT INTO `FootprintCategory` VALUES (46,1,90,93,1,1,'DIP',NULL,'Root Category ➤ DIP');
302-
INSERT INTO `FootprintCategory` VALUES (47,46,91,92,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
303-
INSERT INTO `FootprintCategory` VALUES (48,1,94,97,1,1,'DIP',NULL,'Root Category ➤ DIP');
304-
INSERT INTO `FootprintCategory` VALUES (49,48,95,96,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
305-
INSERT INTO `FootprintCategory` VALUES (50,1,98,101,1,1,'DIP',NULL,'Root Category ➤ DIP');
306-
INSERT INTO `FootprintCategory` VALUES (51,50,99,100,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
307-
INSERT INTO `FootprintCategory` VALUES (52,1,102,105,1,1,'DIP',NULL,'Root Category ➤ DIP');
308-
INSERT INTO `FootprintCategory` VALUES (53,52,103,104,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
309-
INSERT INTO `FootprintCategory` VALUES (54,1,106,109,1,1,'DIP',NULL,'Root Category ➤ DIP');
310-
INSERT INTO `FootprintCategory` VALUES (55,54,107,108,2,1,'CERDIP',NULL,'Root Category ➤ DIP ➤ CERDIP');
311-
INSERT INTO `FootprintCategory` VALUES (56,1,110,113,1,1,'DIP',NULL,'Root Category ➤ DIP');
312-
INSERT INTO `FootprintCategory` VALUES (57,56,111,112,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
313-
INSERT INTO `FootprintCategory` VALUES (58,1,114,117,1,1,'DIP',NULL,'Root Category ➤ DIP');
314-
INSERT INTO `FootprintCategory` VALUES (59,58,115,116,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
315-
INSERT INTO `FootprintCategory` VALUES (60,1,118,121,1,1,'DIP',NULL,'Root Category ➤ DIP');
316-
INSERT INTO `FootprintCategory` VALUES (61,60,119,120,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
317-
INSERT INTO `FootprintCategory` VALUES (62,1,122,125,1,1,'DIP',NULL,'Root Category ➤ DIP');
318-
INSERT INTO `FootprintCategory` VALUES (63,62,123,124,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
319-
INSERT INTO `FootprintCategory` VALUES (64,1,126,129,1,1,'DIP',NULL,'Root Category ➤ DIP');
320-
INSERT INTO `FootprintCategory` VALUES (65,64,127,128,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
321-
INSERT INTO `FootprintCategory` VALUES (66,1,130,133,1,1,'DIP',NULL,'Root Category ➤ DIP');
322-
INSERT INTO `FootprintCategory` VALUES (67,66,131,132,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
323-
INSERT INTO `FootprintCategory` VALUES (68,1,134,137,1,1,'DIP',NULL,'Root Category ➤ DIP');
324-
INSERT INTO `FootprintCategory` VALUES (69,68,135,136,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
325-
INSERT INTO `FootprintCategory` VALUES (70,1,138,141,1,1,'DIP',NULL,'Root Category ➤ DIP');
326-
INSERT INTO `FootprintCategory` VALUES (71,70,139,140,2,1,'PDIP',NULL,'Root Category ➤ DIP ➤ PDIP');
256+
INSERT INTO `FootprintCategory` VALUES ('1','null','1','20','0','1','Root Category','','Root Category');
257+
INSERT INTO `FootprintCategory` VALUES ('2','1','2','11','1','1','BGA','null','Root Category ➤ BGA');
258+
INSERT INTO `FootprintCategory` VALUES ('3','2','3','4','2','1','CBGA','null','Root Category ➤ BGA ➤ CBGA');
259+
INSERT INTO `FootprintCategory` VALUES ('4','2','5','6','2','1','FCBGA','null','Root Category ➤ BGA ➤ FCBGA');
260+
INSERT INTO `FootprintCategory` VALUES ('5','2','7','8','2','1','PBGA','null','Root Category ➤ BGA ➤ PBGA');
261+
INSERT INTO `FootprintCategory` VALUES ('6','2','9','10','2','1','SBGA','','Root Category ➤ BGA ➤ SBGA');
262+
INSERT INTO `FootprintCategory` VALUES ('7','1','12','17','1','1','DIP','null','Root Category ➤ DIP');
263+
INSERT INTO `FootprintCategory` VALUES ('8','7','13','14','2','1','CERDIP','null','Root Category ➤ DIP ➤ CERDIP');
264+
INSERT INTO `FootprintCategory` VALUES ('9','7','15','16','2','1','PDIP','null','Root Category ➤ DIP ➤ PDIP');
265+
INSERT INTO `FootprintCategory` VALUES ('10','1','18','19','1','1','PDIP','null','Root Category ➤ SOIC');
327266
/*!40000 ALTER TABLE `FootprintCategory` ENABLE KEYS */;
328267
UNLOCK TABLES;
329268
DROP TABLE IF EXISTS `FootprintImage`;

src/PartKeepr/FootprintBundle/Entity/FootprintCategory.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ public function getFootprints()
7878
return $this->footprints->getValues();
7979
}
8080

81+
/**
82+
* Adds a child.
83+
*
84+
* @param FootprintCategory $child
85+
*/
86+
public function addChild(FootprintCategory $child)
87+
{
88+
$this->children[] = $child;
89+
}
90+
8191
/**
8292
* Returns the children.
8393
*

src/PartKeepr/SetupBundle/Resources/setup-data/footprints/footprints.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ PBGA-676:
6868
# SBGA
6969
SBGA-256:
7070
description: 256-Ball Ball Grid Array, Thermally Enhanced
71-
category: BGA/PBGA
71+
category: BGA/SBGA
7272
image: BGA/SBGA-256.png
7373
SBGA-304:
7474
description: 304-Ball Ball Grid Array, Thermally Enhanced
75-
category: BGA/PBGA
75+
category: BGA/SBGA
7676
image: BGA/SBGA-304.png
7777
SBGA-432:
7878
description: 432-Ball Ball Grid Array, Thermally Enhanced
79-
category: BGA/PBGA
79+
category: BGA/SBGA
8080
image: BGA/SBGA-432.png
8181

8282
# Ceramic DIP
@@ -150,6 +150,9 @@ PDIP-28 Wide:
150150
description: 28-Lead Plastic Dual In-Line Package, Wide Body
151151
category: DIP/PDIP
152152
image: DIP/PDIP-28-W.png
153+
154+
# SOIC
153155
SOIC-N-EP-8:
154156
description: 8-Lead Standard Small Outline Package, with Expose Pad
157+
category: SOIC
155158

src/PartKeepr/SetupBundle/Services/FootprintSetupService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function addFootprintCategoryPath(array $path, FootprintCategory $pare
132132
$category = null;
133133

134134
foreach ($parentNode->getChildren() as $child) {
135-
if ($child->getName() == $name) {
135+
if ($child->getName() === $name) {
136136
$category = $child;
137137
}
138138
}
@@ -141,7 +141,7 @@ protected function addFootprintCategoryPath(array $path, FootprintCategory $pare
141141
$category = new FootprintCategory();
142142
$category->setParent($parentNode);
143143
$category->setName($name);
144-
$parentNode->getChildren()[] = $category;
144+
$parentNode->addChild($category);
145145

146146
$this->entityManager->persist($category);
147147
}

0 commit comments

Comments
 (0)