protected function isEmbeddable($model, $relation)
    {
        if (array_key_exists($model, $this->embeddedRecords)) {
            return is_array($this->embeddedRecords[$model]) && in_array($relation, $this->embeddedRecords[$model]);
        }

        return false;
    }
protected function isEmbeddable($model, $relation)
    {
        if (array_key_exists($model, $this->embeddedRecords)) {
            return is_array($this->embeddedRecords[$model]) && in_array($relation, $this->embeddedRecords[$model]);
        }

        return false;
    }
protected function isEmbeddable ( $ model , $ relation ) { if ( array_key_exists ( $ model , $ this -> embeddedRecords ) ) { return is_array ( $ this -> embeddedRecords [ $ model ] ) && in_array ( $ relation , $ this -> embeddedRecords [ $ model ] ) ; } return false ; }
Checks if a speicific model's relation should have its records embedded.

@param  string  $model    Model's classname
@param  string  $relation Relation name
@return boolean           Trus if the relation should be embedded
Checks if a speicific model s relation should have its records embedded .