Skip to content

Commit

Permalink
ENH Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 12, 2024
1 parent afbb9c4 commit d2f7171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Controllers/TaxonomyDirectoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* Class TaxonomyDirectoryController
*
* Controller for returning a list of pages tagged with a specific Taxonomy Term
*
* @template T
* @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 d2f7171

Please sign in to comment.