src/mako/database/midgard/ORM.php
public function protect($column)
	{
		if($column === false)
		{
			$this->protected = [];
		}
		else
		{
			$this->protected = array_unique(array_merge($this->protected, (array) $column));
		}

		return $this;
	}
public function protect($column)
	{
		if($column === false)
		{
			$this->protected = [];
		}
		else
		{
			$this->protected = array_unique(array_merge($this->protected, (array) $column));
		}

		return $this;
	}
public function protect ( $ column ) { if ( $ column === false ) { $ this -> protected = [ ] ; } else { $ this -> protected = array_unique ( array_merge ( $ this -> protected , ( array ) $ column ) ) ; } return $ this ; }
Excludes the chosen columns and relations from array and json representations of the record.
You expose all fields by passing FALSE.

@param  string|array|bool $column Column or relation to hide from the
@return $this
Excludes the chosen columns and relations from array and json representations of the record . You expose all fields by passing FALSE .