Skip to content
Snippets Groups Projects
Commit 13012fb5 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #10666 from ogasser/appframework_db_tests

Make Entity properties ```protected``` as in docs
parents c35d60f6 47a2e31c
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,10 @@ namespace OCP\AppFramework\Db;
* @method void setPreName(string $preName)
*/
class TestEntity extends Entity {
public $name;
public $email;
public $testId;
public $preName;
protected $name;
protected $email;
protected $testId;
protected $preName;
public function __construct($name=null){
$this->addType('testId', 'integer');
......
......@@ -36,8 +36,8 @@ use Test\AppFramework\Db\MapperTestUtility;
* @method void setPreName(string $preName)
*/
class Example extends Entity {
public $preName;
public $email;
protected $preName;
protected $email;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment