I have this base class:
<?php
use Parse\ParseObject;
use Parse\ParseQuery;
class BaseModel extends ParseObject
{
public static $className = 'PlaceHolder';
public static function query() {
return new ParseQuery(self::$className);
}
}
And this child class
<?php
class Post extends BaseModel
{
public static $className = 'Post';
}
When I call Post::$className I get 'Post' but when I use Post::query() it uses the parent classes value 'PlaceHolder'.
Why does the inherited static function use the value from the parent class?