src/Kdyby/DoctrineForms/Builder/EntityBuilder.php
/**
	 * @param object $entity
	 * @throws InvalidArgumentException
	 * @return EntityBuilder
	 */
@param object $entity
@throws InvalidArgumentException
@return EntityBuilder
@param object $entity @throws InvalidArgumentException @return EntityBuilder
public function bindEntity($entity)
	{
		if (!is_object($entity)) {
			throw new InvalidArgumentException('Expected object, ' . gettype($entity) . ' given');
		}
		$this->bindEntityType(get_class($entity));
		$this->entity = $entity;
		return $this;
	}
public function bindEntity ( $ entity ) { if ( ! is_object ( $ entity ) ) { throw new InvalidArgumentException ( 'Expected object, ' . gettype ( $ entity ) . ' given' ) ; } $ this -> bindEntityType ( get_class ( $ entity ) ) ; $ this -> entity = $ entity ; return $ this ; }
@param object $entity
 @throws InvalidArgumentException
 @return EntityBuilder
@param object $entity @throws InvalidArgumentException @return EntityBuilder