From 8a0cf2dcba0703f9aebf2d82591f2d95f0dc7afa Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 16 Jun 2015 21:55:59 +0930 Subject: [PATCH] Override static property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @franzliedke I didn’t realise that static properties are static to the class they are defined on, and not each individual subclass. All of the static members of the SerializeAction class (which are intended for extensions to alter per-action) are being inherited by all actions. Any ideas on how to work around this other than defining every static member on each individual subclass? --- framework/core/src/Api/Actions/Users/ShowAction.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/core/src/Api/Actions/Users/ShowAction.php b/framework/core/src/Api/Actions/Users/ShowAction.php index 768016cd3..551a8638b 100644 --- a/framework/core/src/Api/Actions/Users/ShowAction.php +++ b/framework/core/src/Api/Actions/Users/ShowAction.php @@ -29,6 +29,8 @@ class ShowAction extends SerializeResourceAction 'groups' => true ]; + public static $link = []; + /** * Instantiate the action. *