Skip to content

Commit

Permalink
ENH Add generic types (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jan 23, 2024
1 parent afbb9c4 commit 336d1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Controllers/TaxonomyDirectoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* Class TaxonomyDirectoryController
*
* Controller for returning a list of pages tagged with a specific Taxonomy Term
*
* @extends PageController<Page>
*/
class TaxonomyDirectoryController extends PageController
{
Expand Down
2 changes: 0 additions & 2 deletions src/TaxonomyTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public function onBeforeDelete()
parent::onBeforeDelete();

foreach ($this->Children() as $term) {
/** @var TaxonomyTerm $term */
$term->delete();
}
}
Expand Down Expand Up @@ -200,7 +199,6 @@ public function onAfterWrite()

// Write the current term's type to all children
foreach ($this->Children() as $term) {
/** @var TaxonomyTerm $term */
$term->TypeID = $this->Type()->ID;
$term->write();
}
Expand Down

0 comments on commit 336d1c7

Please sign in to comment.