ice / framework

Source code of Ice framework
https://www.iceframework.org
BSD 3-Clause "New" or "Revised" License
341 stars 45 forks source link

Model::getId bug #240

Closed Yahasana closed 4 years ago

Yahasana commented 5 years ago

Model::getId

fixed


    public function getId()
    {
        if (is_array($this->primary)) {
            $id = [];
            foreach ($this->primary as $k) {
                $id[] = $this->get($k);
            }
        } else {
            $id = $this->get($this->primary);
        }
        return $id;
    }