rinvex / laravel-repositories

⚠️ [ABANDONED] Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
https://rinvex.com
MIT License
666 stars 115 forks source link

The repository class can not use two functions of one class #151

Open huiyonghkw opened 7 years ago

huiyonghkw commented 7 years ago

classA.php


use A\B\C\ClassB;

classA
{
    public $b;

    public function __construct(ClassB $b)
    {
        $this->b = $b;
    }

    public function func1()
    {
       $this->b->update(1, ["a"=>1, "b" => 2]);

       $this->func2();
    }

    public function func2()
    {
        $this->b->where(1)->where('a'=>'1')->get();
    }

}

like above function func2$this->b can not use where fucntion to query